* 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>
11 lines
255 B
JavaScript
11 lines
255 B
JavaScript
import { ref } from 'vue'
|
|
import { defineStore } from 'pinia'
|
|
import lang from '../i18n/i18n';
|
|
|
|
const useGroupStore = defineStore('group', () => {
|
|
const tag = ref("")
|
|
const name = ref(lang.inbox)
|
|
return { tag, name }
|
|
})
|
|
|
|
export default useGroupStore |