Compare commits
No commits in common. "f8523474275681087b6877d03c1ba2c5b1a7392e" and "ed8078f54d28a84a31388e73951c24a8b62d7f4f" have entirely different histories.
f852347427
...
ed8078f54d
|
|
@ -17,7 +17,6 @@
|
||||||
"dayjs": "^1.11.2",
|
"dayjs": "^1.11.2",
|
||||||
"mockjs": "^1.1.0",
|
"mockjs": "^1.1.0",
|
||||||
"pinia": "^2.0.13",
|
"pinia": "^2.0.13",
|
||||||
"pinia-persistedstate-plugin": "^0.1.0",
|
|
||||||
"tinymce": "^5.10.2",
|
"tinymce": "^5.10.2",
|
||||||
"vue": "^3.2.16",
|
"vue": "^3.2.16",
|
||||||
"vue-router": "^4.0.14",
|
"vue-router": "^4.0.14",
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { computed, ref, unref } from 'vue'
|
import { computed, reactive, ref, unref, toRaw } from 'vue'
|
||||||
import { NForm } from 'naive-ui'
|
import { NForm } from 'naive-ui'
|
||||||
import AreaCascader from '@/components/AreaCascader/index.vue'
|
import AreaCascader from '@/components/AreaCascader/index.vue'
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
import { createPinia } from 'pinia'
|
import { createPinia } from 'pinia'
|
||||||
import { createPersistedState } from 'pinia-persistedstate-plugin'
|
|
||||||
const store = createPinia()
|
|
||||||
store.use(createPersistedState())
|
|
||||||
|
|
||||||
export function setupStore(app) {
|
export function setupStore(app) {
|
||||||
app.use(store)
|
app.use(createPinia())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ import { getUser } from '@/api/user'
|
||||||
import { removeToken } from '@/utils/token'
|
import { removeToken } from '@/utils/token'
|
||||||
|
|
||||||
export const useUserStore = defineStore('user', {
|
export const useUserStore = defineStore('user', {
|
||||||
persist: true,
|
|
||||||
state() {
|
state() {
|
||||||
return {
|
return {
|
||||||
userInfo: {}
|
userInfo: {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue