feat: 调整个人信息页面
This commit is contained in:
1 parent
bde886d9e6
commit
6074180a1a
13 files changed
+174
-97
No files matched your search
+15
-1
@@ -1,14 +1,28 @@
|
||||
import { createPinia } from 'pinia'
|
||||
import { createPersistedState } from 'pinia-plugin-persistedstate'
|
||||
import { createSSRApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import './styles/tailwind.css'
|
||||
|
||||
export function createApp() {
|
||||
const pinia = createPinia()
|
||||
const app = createSSRApp(App)
|
||||
const pinia = createPinia()
|
||||
pinia.use(customStorage())
|
||||
app.use(pinia)
|
||||
return {
|
||||
app,
|
||||
pinia,
|
||||
}
|
||||
}
|
||||
function customStorage() {
|
||||
return createPersistedState({
|
||||
storage: {
|
||||
getItem(key) {
|
||||
return uni.getStorageSync(key)
|
||||
},
|
||||
setItem(key, value) {
|
||||
uni.setStorageSync(key, value)
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user