| 12345678910111213141516171819 |
- import { defineStore } from 'pinia';
- import { LANGUAGE_ENGLISH, LANGUAGE_CHINESE } from '../variables';
- /**
- * 多语言
- */
- export const useLocaleStore = defineStore('locale', {
- state: () => {
- return {
- value: LANGUAGE_CHINESE
- };
- },
- actions: {
- updateLanguage(lang) {
- this.value = lang;
- }
- }
- });
|