From 17760a6926ba5b3ce8c47b6956d14d5319418f3c Mon Sep 17 00:00:00 2001 From: "maxiaozhe@alicorns.co.jp" Date: Tue, 14 Nov 2023 09:11:46 +0900 Subject: [PATCH] =?UTF-8?q?FlowChart=20=E3=81=AE=E3=83=AC=E3=82=A4?= =?UTF-8?q?=E3=82=A2=E3=82=A6=E3=83=88=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env | 2 +- frontend/src/pages/FlowChart.vue | 97 +++++++++++--------- frontend/src/pages/FlowEditorPage2.vue | 117 ------------------------- frontend/src/router/routes.ts | 1 - frontend/src/stores/useAuthStore.ts | 4 +- 5 files changed, 57 insertions(+), 164 deletions(-) delete mode 100644 frontend/src/pages/FlowEditorPage2.vue diff --git a/frontend/.env b/frontend/.env index 019b6f4..f55f03b 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1,3 +1,3 @@ KAB_BACKEND_URL="https://kab-backend.azurewebsites.net/" -#KAB_BACKEND_URL="http://127.0.0.1:8000/" +#AB_BACKEND_URL="http://127.0.0.1:8000/" diff --git a/frontend/src/pages/FlowChart.vue b/frontend/src/pages/FlowChart.vue index 586bae9..2e25b38 100644 --- a/frontend/src/pages/FlowChart.vue +++ b/frontend/src/pages/FlowChart.vue @@ -1,47 +1,55 @@ diff --git a/frontend/src/router/routes.ts b/frontend/src/router/routes.ts index 1d7e1ea..01e6f0a 100644 --- a/frontend/src/router/routes.ts +++ b/frontend/src/router/routes.ts @@ -17,7 +17,6 @@ const routes: RouteRecordRaw[] = [ { path: 'FlowChartTest', component: () => import('pages/FlowChartTest.vue') }, { path: 'flowEditor', component: () => import('pages/FlowEditorPage.vue') }, { path: 'FlowChart', component: () => import('pages/FlowChart.vue') }, - { path: 'flowChart2', component: () => import('pages/FlowEditorPage2.vue') }, { path: 'right', component: () => import('pages/testRight.vue') }, { path: 'domain', component: () => import('pages/TenantDomain.vue') }, { path: 'userdomain', component: () => import('pages/UserDomain.vue') } diff --git a/frontend/src/stores/useAuthStore.ts b/frontend/src/stores/useAuthStore.ts index 51495a2..19891dc 100644 --- a/frontend/src/stores/useAuthStore.ts +++ b/frontend/src/stores/useAuthStore.ts @@ -1,6 +1,6 @@ import { defineStore } from 'pinia'; import { api } from 'boot/axios'; - +import {router} from 'src/router'; import {IDomainInfo} from '../types/ActionTypes'; @@ -67,7 +67,7 @@ export const useAuthStore = defineStore({ this.token = undefined; localStorage.removeItem('token'); localStorage.removeItem('currentDomain'); - Router.push('/login'); + router.push('/login'); }, async setCurrentDomain(domain:IDomainInfo){ if(domain.id===this.currentDomain.id){