Skip to content

Commit

Permalink
docs(revert): revert code
Browse files Browse the repository at this point in the history
  • Loading branch information
YDKD committed Jul 16, 2022
1 parent bfe5d26 commit 1fc1d8e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 211 deletions.
11 changes: 2 additions & 9 deletions src/permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Autor: YDKD
* @Date: 2022-03-20 08:41:57
* @LastEditors: YDKD
* @LastEditTime: 2022-05-05 22:09:26
* @LastEditTime: 2022-07-16 14:50:06
*/
import { getRoutes } from './api/getApi'
import { useNProgress, useTitle, useCache } from './hooks'
Expand All @@ -20,14 +20,7 @@ const permissionStore = usePermissionStoreWithOut()

const { storageCache } = useCache()

const whiteRouteList = [
'/login',
'/register',
'/reset-pass',
'/test-1',
'/test-2',
'/test-3'
]
const whiteRouteList = ['/login', '/register', '/reset-pass']

router.beforeEach(async (to, from, next) => {
start()
Expand Down
21 changes: 0 additions & 21 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,6 @@ const routes: RouteRecordRaw[] = [
title: '登录'
}
},
{
path: '/test-1',
component: () => import('@/views/test/index.vue'),
meta: {
title: '通行扫码'
}
},
{
path: '/test-2',
component: () => import('@/views/test/a.vue'),
meta: {
title: '通行扫码'
}
},
{
path: '/test-3',
component: () => import('@/views/test/b.vue'),
meta: {
title: '通行扫码'
}
},
{
path: '/register',
component: () => import('@/views/register/index.vue'),
Expand Down
2 changes: 1 addition & 1 deletion src/views/manage/hooks/useTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Autor: YDKD
* @Date: 2022-04-01 15:25:58
* @LastEditors: YDKD
* @LastEditTime: 2022-04-05 15:34:43
* @LastEditTime: 2022-07-16 10:07:21
*/
import { ref } from 'vue'
import router from '@/router'
Expand Down
60 changes: 0 additions & 60 deletions src/views/test/a.vue

This file was deleted.

60 changes: 0 additions & 60 deletions src/views/test/b.vue

This file was deleted.

60 changes: 0 additions & 60 deletions src/views/test/index.vue

This file was deleted.

0 comments on commit 1fc1d8e

Please sign in to comment.