gemercheung 6 months ago
parent
commit
f6d6942625

+ 0 - 8
packages/frontend/src/store/modules/app.js

@@ -1,11 +1,3 @@
-/**********************************
- * @Author: Ronnie Zhang
- * @LastEditor: Ronnie Zhang
- * @LastEditTime: 2023/12/05 21:25:31
- * @Email: zclzone@outlook.com
- * Copyright © 2023 Ronnie Zhang(大脸怪) | https://isme.top
- **********************************/
-
 import { defaultLayout, defaultPrimaryColor, naiveThemeOverrides } from '@/settings'
 import { generate, getRgbStr } from '@arco-design/color'
 import { useDark } from '@vueuse/core'

+ 1 - 9
packages/frontend/src/store/modules/auth.js

@@ -1,11 +1,3 @@
-/**********************************
- * @Author: Ronnie Zhang
- * @LastEditor: Ronnie Zhang
- * @LastEditTime: 2023/12/05 21:25:39
- * @Email: zclzone@outlook.com
- * Copyright © 2023 Ronnie Zhang(大脸怪) | https://isme.top
- **********************************/
-
 import { usePermissionStore, useRouterStore, useTabStore, useUserStore } from '@/store'
 import { defineStore } from 'pinia'
 
@@ -54,6 +46,6 @@ export const useAuthStore = defineStore('auth', {
     },
   },
   persist: {
-    key: 'vue-naivue-admin_auth',
+    key: 'help_center_auth',
   },
 })

+ 0 - 8
packages/frontend/src/store/modules/router.js

@@ -1,11 +1,3 @@
-/**********************************
- * @Author: Ronnie Zhang
- * @LastEditor: Ronnie Zhang
- * @LastEditTime: 2024/01/06 17:18:40
- * @Email: zclzone@outlook.com
- * Copyright © 2023 Ronnie Zhang(大脸怪) | https://isme.top
- **********************************/
-
 import { defineStore } from 'pinia'
 
 export const useRouterStore = defineStore('router', () => {

+ 0 - 8
packages/frontend/src/store/modules/tab.js

@@ -1,11 +1,3 @@
-/**********************************
- * @Author: Ronnie Zhang
- * @LastEditor: Ronnie Zhang
- * @LastEditTime: 2023/12/05 21:25:52
- * @Email: zclzone@outlook.com
- * Copyright © 2023 Ronnie Zhang(大脸怪) | https://isme.top
- **********************************/
-
 import { defineStore } from 'pinia'
 import { useRouterStore } from './router'
 

+ 0 - 8
packages/frontend/src/store/modules/user.js

@@ -1,11 +1,3 @@
-/**********************************
- * @Author: Ronnie Zhang
- * @LastEditor: Ronnie Zhang
- * @LastEditTime: 2023/12/05 21:25:59
- * @Email: zclzone@outlook.com
- * Copyright © 2023 Ronnie Zhang(大脸怪) | https://isme.top
- **********************************/
-
 import { defineStore } from 'pinia'
 
 export const useUserStore = defineStore('user', {

+ 1 - 1
packages/frontend/src/utils/storage/index.js

@@ -9,7 +9,7 @@
 
 import { createStorage } from './storage'
 
-const prefixKey = 'vue-naive-admin_'
+const prefixKey = 'help_center_'
 
 export const createLocalStorage = function (option = {}) {
   return createStorage({

+ 28 - 0
packages/web/src/api/user.ts

@@ -0,0 +1,28 @@
+import { request } from '@/utils/http'
+import type { ResultData } from '@/utils/http'
+
+export type ArticleDetailType = {
+  id: number
+  title: string
+  content: string
+  createTime: string
+  readCount: number
+  categoryId: number
+  articleId: number
+}
+
+export type ArticleDetailMenuType = {
+  level: number
+  text: string
+  children: ArticleDetailMenuType[]
+}
+
+export const getUserInfo = (): Promise<ResultData<ArticleDetailType>> =>
+  request.get(`web/userinfo`,{
+      Headers: {
+
+      }
+  })
+
+
+