Files
Smail/fe/src/stores/useGlobalStatusStore.js
T
HuangZheandzhe28 ad0167f6fd 代码分离,功能优化 (#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>
2024-09-23 10:24:49 +08:00

15 lines
271 B
JavaScript

import {defineStore} from "pinia";
const useGlobalStatusStore = defineStore('useGlobalStatusStore', {
state() {
return {
isLogin: true,
userInfos:{}
}
},
getters: {},
actions: {}
})
export {useGlobalStatusStore};