Added the flow from New Project to View Project

This commit is contained in:
Matthew Aaron Raymer
2023-01-16 14:12:52 +08:00
parent c61be23fee
commit c84e597047
3 changed files with 50 additions and 11 deletions

View File

@@ -135,11 +135,19 @@ export default class NewEditProjectView extends Vue {
const resp = await this.axios.post(url, payload, { headers });
console.log(resp.status, resp.data);
useAppStore().setProjectId(resp.data);
const route = {
name: "project",
};
console.log(route);
this.$router.push(route);
console.log("TEST", useAppStore().projectId);
setTimeout(
function (that: Vue) {
console.log("THAT:", localStorage.getItem("projectId"));
const route = {
name: "project",
};
console.log(route);
that.$router.push(route);
},
2000,
this
);
} catch (error) {
console.log(error);
}