Subject: workflow for saving of project
* Changed from passing parameters since this isn't supported anymore by Vue * Added new AppStore values for a projectId which are accessible in the ProjectView View
This commit is contained in:
@@ -76,6 +76,7 @@ import { db } from "../db";
|
||||
import { accessToken, SimpleSigner } from "@/libs/crypto";
|
||||
import * as didJwt from "did-jwt";
|
||||
import { IIdentifier } from "@veramo/core";
|
||||
import { useAppStore } from "@/store/app";
|
||||
|
||||
@Options({
|
||||
components: {},
|
||||
@@ -133,9 +134,9 @@ export default class NewEditProjectView extends Vue {
|
||||
try {
|
||||
const resp = await this.axios.post(url, payload, { headers });
|
||||
console.log(resp.status, resp.data);
|
||||
useAppStore().setProjectId(resp.data);
|
||||
const route = {
|
||||
name: "project",
|
||||
params: { projectId: resp.data },
|
||||
};
|
||||
console.log(route);
|
||||
this.$router.push(route);
|
||||
|
||||
Reference in New Issue
Block a user