代码分离,功能优化 (#204)
* feat: 代码分离,功能优化 1. 代码迁移到 ts. 2. 分离 axios 部分代码. 3. 增加 pinia 支持,全局状态代码迁移到相对应的 store. 4. 代码格式优化, 用 === 代替 ==. 5. 代码声明更改,用 const 代替 var 声明. 6. Header 使用 Router 导航. 7. v-for 增加 key. * fix[fe]: 移除过时的 prop 引用 * fix[fe]: 移除过时的 prop 引用 * fix[fe]: 修复 logo 上面有横线的问题 * fix[fe]: 修复 logo 上面有横线的问题 --------- Co-authored-by: zhe28 <huangze28@foxmail.com>
This commit is contained in:
1 parent
dbb671df67
commit
ad0167f6fd
20 files changed
+1640
-1638
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import {defineStore} from "pinia";
|
||||
|
||||
const useGlobalStatusStore = defineStore('useGlobalStatusStore', {
|
||||
state() {
|
||||
return {
|
||||
isLogin: true,
|
||||
userInfos:{}
|
||||
}
|
||||
},
|
||||
getters: {},
|
||||
actions: {}
|
||||
})
|
||||
|
||||
|
||||
export {useGlobalStatusStore};
|
||||
Reference in new issue
Block a user