|
@@ -1,62 +1,6 @@
|
|
|
import { useIsMicro } from '@/hooks/effect'
|
|
import { useIsMicro } from '@/hooks/effect'
|
|
|
import { createRouter, createWebHashHistory, RouterView } from 'vue-router'
|
|
import { createRouter, createWebHashHistory, RouterView } from 'vue-router'
|
|
|
|
|
|
|
|
-const knowledge = {
|
|
|
|
|
- path: '/knowledge',
|
|
|
|
|
- name: '知识库',
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: 'knowledge'
|
|
|
|
|
- },
|
|
|
|
|
- component: () => import('@/pages/knowledge/index.vue')
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-const chatList = {
|
|
|
|
|
- path: '/chat/ist',
|
|
|
|
|
- name: '聊天',
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: 'chat'
|
|
|
|
|
- },
|
|
|
|
|
- component: () => import('@/pages/chat/list.vue')
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-const chat = {
|
|
|
|
|
- path: '/chat',
|
|
|
|
|
- name: 'chat',
|
|
|
|
|
- meta: {
|
|
|
|
|
- hidden: true,
|
|
|
|
|
- title: 'chat'
|
|
|
|
|
- },
|
|
|
|
|
- component: () => import('@/pages/chat/index.vue')
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-const search = {
|
|
|
|
|
- path: '/search',
|
|
|
|
|
- name: '搜索',
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: 'search'
|
|
|
|
|
- },
|
|
|
|
|
- component: () => import('@/pages/search/index.vue')
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-const flow = {
|
|
|
|
|
- path: '/flow',
|
|
|
|
|
- name: '工作流',
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: 'flow'
|
|
|
|
|
- },
|
|
|
|
|
- component: () => import('@/pages/flow/index.vue')
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-const logo = {
|
|
|
|
|
- path: '/login',
|
|
|
|
|
- name: '登录',
|
|
|
|
|
- meta: {
|
|
|
|
|
- hidden: true,
|
|
|
|
|
- title: 'flow'
|
|
|
|
|
- },
|
|
|
|
|
- component: () => import('@/pages/login/index.vue')
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
const board = {
|
|
const board = {
|
|
|
path: '/board',
|
|
path: '/board',
|
|
|
name: '登录',
|
|
name: '登录',
|
|
@@ -87,17 +31,6 @@ const card = {
|
|
|
component: () => import('@/pages/card/index.vue')
|
|
component: () => import('@/pages/card/index.vue')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const APP = {
|
|
|
|
|
- path: '/',
|
|
|
|
|
- name: 'app',
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: 'app'
|
|
|
|
|
- },
|
|
|
|
|
- component: () => import('@/layout/layout.vue'),
|
|
|
|
|
- redirect: '/card-preview',
|
|
|
|
|
- children: [board, cardPreview]
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
const CARD = {
|
|
const CARD = {
|
|
|
path: '/card',
|
|
path: '/card',
|
|
|
name: 'card',
|
|
name: 'card',
|
|
@@ -109,7 +42,18 @@ const CARD = {
|
|
|
children: [card]
|
|
children: [card]
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const _routes = [APP, CARD] as any
|
|
|
|
|
|
|
+const APP = {
|
|
|
|
|
+ path: '/',
|
|
|
|
|
+ name: 'app',
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: 'app'
|
|
|
|
|
+ },
|
|
|
|
|
+ component: () => import('@/layout/layout.vue'),
|
|
|
|
|
+ redirect: '/card-preview',
|
|
|
|
|
+ children: [board, cardPreview, CARD]
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const _routes = [APP] as any
|
|
|
|
|
|
|
|
if (_routes[0].link) {
|
|
if (_routes[0].link) {
|
|
|
window.open(_routes[0].path)
|
|
window.open(_routes[0].path)
|