From 39d6a156a898c766e47fda7dcbe50b6549de7ac0 Mon Sep 17 00:00:00 2001 From: leiqiaochu Date: Fri, 31 Mar 2023 14:19:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20license=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/license.ts | 9 +++ src/router/menu.ts | 11 ++- src/views/system/License/component/Card.vue | 77 +++++++++++++++++++++ src/views/system/License/index.vue | 40 +++++++++++ src/views/system/License/init/index.vue | 64 +++++++++++++++++ 5 files changed, 198 insertions(+), 3 deletions(-) create mode 100644 src/api/system/license.ts create mode 100644 src/views/system/License/component/Card.vue create mode 100644 src/views/system/License/index.vue create mode 100644 src/views/system/License/init/index.vue diff --git a/src/api/system/license.ts b/src/api/system/license.ts new file mode 100644 index 00000000..3f5f3305 --- /dev/null +++ b/src/api/system/license.ts @@ -0,0 +1,9 @@ +import server from '@/utils/request'; + +export const getModule = () => server.get('/license/module'); + +export const licenseInit = (data:any) =>server.post('/license/init',data); + +export const getLicense = () => server.get('/license'); + +export const initPage = () => server.get('/user/settings/init'); \ No newline at end of file diff --git a/src/router/menu.ts b/src/router/menu.ts index cd2e8bf8..18aab90b 100644 --- a/src/router/menu.ts +++ b/src/router/menu.ts @@ -1,6 +1,7 @@ export const LoginPath = '/login' export const InitHomePath = '/init-home' export const AccountCenterBindPath = '/account/center/bind' +export const InitLicense = '/init-license' export const AccountMenu = { path: '/account', @@ -51,7 +52,7 @@ export const AccountMenu = { } export default [ - { path: '/*', redirect: '/'}, + { path: '/*', redirect: '/' }, { path: LoginPath, component: () => import('@/views/user/Login/index.vue') @@ -61,8 +62,12 @@ export default [ component: () => import('@/views/account/Center/bind/index.vue') }, { - path: InitHomePath, // 初始化 - component: () => import('@/views/init-home/index.vue') + path: InitHomePath, // 初始化 + component: () => import('@/views/init-home/index.vue') }, + { + path: InitLicense, + component: () => import('@/views/system/License/index.vue') + } ] \ No newline at end of file diff --git a/src/views/system/License/component/Card.vue b/src/views/system/License/component/Card.vue new file mode 100644 index 00000000..96c9abbb --- /dev/null +++ b/src/views/system/License/component/Card.vue @@ -0,0 +1,77 @@ + + + + \ No newline at end of file diff --git a/src/views/system/License/index.vue b/src/views/system/License/index.vue new file mode 100644 index 00000000..64fd4204 --- /dev/null +++ b/src/views/system/License/index.vue @@ -0,0 +1,40 @@ + + + + \ No newline at end of file diff --git a/src/views/system/License/init/index.vue b/src/views/system/License/init/index.vue new file mode 100644 index 00000000..2253658a --- /dev/null +++ b/src/views/system/License/init/index.vue @@ -0,0 +1,64 @@ + + + + \ No newline at end of file