This commit is contained in:
parent
56ab289db7
commit
a6c6ceca29
|
@ -23,9 +23,9 @@ pinia.use(piniaPluginPersistedstate);
|
||||||
// const vConsole = new VConsole();
|
// const vConsole = new VConsole();
|
||||||
|
|
||||||
app.use(pinia)
|
app.use(pinia)
|
||||||
|
app.use(router)
|
||||||
app
|
app
|
||||||
.use(router)
|
|
||||||
.use(ElementPlus, {
|
.use(ElementPlus, {
|
||||||
locale: zhCn,
|
locale: zhCn,
|
||||||
})
|
})
|
||||||
.mount("#app");
|
app.mount("#app");
|
|
@ -1,13 +0,0 @@
|
||||||
/* eslint-disable no-case-declarations */
|
|
||||||
import { defineStore } from "pinia";
|
|
||||||
|
|
||||||
export const Stored = defineStore("Stored", {
|
|
||||||
// 需要pinia持久化处
|
|
||||||
state: () => {
|
|
||||||
return {
|
|
||||||
url:""
|
|
||||||
};
|
|
||||||
},
|
|
||||||
//设置持久化
|
|
||||||
persist: true ,//持久化开启 或者下面配置
|
|
||||||
});
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
import { defineStore } from 'pinia';
|
||||||
|
|
||||||
|
export const useStore = defineStore('store', {
|
||||||
|
state: () => ({
|
||||||
|
count: 0,
|
||||||
|
}),
|
||||||
|
actions: {
|
||||||
|
increment() {
|
||||||
|
this.count++;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
|
@ -2,8 +2,6 @@ import axios from "axios";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import tools from "@/utils/tools";
|
import tools from "@/utils/tools";
|
||||||
import router from "../router";
|
import router from "../router";
|
||||||
// import { Stored } from "@/stores";
|
|
||||||
// const store=Stored();
|
|
||||||
axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/'
|
axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/'
|
||||||
axios.defaults.timeout = 120000;
|
axios.defaults.timeout = 120000;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue