20 lines
454 B
JavaScript
20 lines
454 B
JavaScript
/*
|
|
* @Author: suhang suhang_max@163.com
|
|
* @Date: 2023-03-02 09:00:45
|
|
* @LastEditors: suhang suhang_max@163.com
|
|
* @LastEditTime: 2023-06-01 09:46:05
|
|
* @FilePath: \train-assess\src\stores\common.js
|
|
* @Description: 全局变量设置
|
|
*/
|
|
import {
|
|
defineStore
|
|
} from 'pinia'
|
|
import { setToken } from '@/utils/auth'
|
|
export const useCommonStore = defineStore('common', {
|
|
state: () => ({
|
|
// e.g. 主题
|
|
theme: 'light'
|
|
}),
|
|
actions: {
|
|
}
|
|
}) |