增加插件安装功能并提升其他功能稳定性 (#1155)

* 增加安装插件demo

* 前端上传demo

* 插件安装初版

* 调整菜单结构

* fix: 修改密码校验 jwt 中的用户 id

* router.go:fix  logger的中间件是默认的,这边日志可以删除;cors的日志打印应当在上面两行启用的时候再进行注释

* 登陆==>登录

* 抽离插件安装方法

* 调整插件功能 提升灵活度

Co-authored-by: zeromake <a390720046@gmail.com>
Co-authored-by: Lu JJ <275955589@qq.com>
Co-authored-by: pnck <hio131@gmail.com>
Co-authored-by: feixuanyu <994085848@qq.com>
This commit is contained in:
奇淼(piexlmax
2022-07-07 12:34:54 +08:00
committed by GitHub
co-authored by zeromake Lu JJ pnck feixuanyu
parent 063ceffb11
commit 4bf872d292
27 changed files with 290 additions and 61 deletions
+9 -2
View File
@@ -52,7 +52,7 @@ export const useUserStore = defineStore('user', () => {
const LoginIn = async(loginInfo) => {
loadingInstance.value = ElLoading.service({
fullscreen: true,
text: '登陆中,请稍候...',
text: '登录中,请稍候...',
})
try {
const res = await login(loginInfo)
@@ -85,6 +85,12 @@ export const useUserStore = defineStore('user', () => {
window.location.reload()
}
}
/* 清理数据 */
const ClearStorage = async() => {
token.value = ''
sessionStorage.clear()
localStorage.clear()
}
/* 设置侧边栏模式*/
const changeSideMode = async(data) => {
const res = await setSelfInfo({ sideMode: data })
@@ -141,6 +147,7 @@ export const useUserStore = defineStore('user', () => {
setToken,
baseColor,
activeColor,
loadingInstance
loadingInstance,
ClearStorage
}
})