diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..b043f82 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,7 @@ + +ssh root@31.59.58.220 " + cd /root/ai/ai-service-front && + git pull && + npm run build && + cp -r dist/* /var/www/ai.luminic.space/ +" \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index f886987..85b3d37 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -12,28 +12,18 @@ const router = createRouter({ }, { path: '/', - name: 'dashboard', - component: DashboardView + name: 'characters', + component: () => import('../views/CharactersView.vue') }, { path: '/assets', name: 'assets', component: () => import('../views/AssetsView.vue') }, - { - path: '/characters', - name: 'characters', - component: () => import('../views/CharactersView.vue') - }, { path: '/characters/:id', name: 'character-detail', component: () => import('../views/CharacterDetailView.vue') - }, - { - path: '/workspace/:id', - name: 'workspace', - component: () => import('../views/WorkspaceView.vue') } ] }) diff --git a/src/views/CharactersView.vue b/src/views/CharactersView.vue index 3081daa..dcfe956 100644 --- a/src/views/CharactersView.vue +++ b/src/views/CharactersView.vue @@ -20,29 +20,26 @@ onMounted(async () => { } }) -const goBack = () => { - router.push('/') -} - -const goToDetail = (id) => { - router.push(`/characters/${id}`) +const handleLogout = () => { + localStorage.removeItem('auth_code') + router.push('/login') }