Added the flow from New Project to View Project
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user