|
|
@@ -1,8 +1,10 @@ |
|
|
|
import { defineStore } from "pinia";
|
|
|
|
|
|
|
|
import { ref, reactive } from "vue";
|
|
|
|
export const userInfoModules = defineStore("userInfoStore", () => {
|
|
|
|
// state
|
|
|
|
const userInfo = ref(null)
|
|
|
|
const equipment = ref(null) //平台 : web、mp-weixin、mp-toutiao
|
|
|
|
const mySystem = ref(null) //安卓和ios : ios、android、windows、macos
|
|
|
|
|
|
|
|
// 登录获取用户信息
|
|
|
|
async function getUserInfo() {
|
|
|
@@ -12,7 +14,7 @@ export const userInfoModules = defineStore("userInfoStore", () => { |
|
|
|
function loginOut(params) {
|
|
|
|
|
|
|
|
}
|
|
|
|
return { userInfo, getUserInfo, loginOut };
|
|
|
|
return { userInfo, equipment, mySystem, getUserInfo, loginOut };
|
|
|
|
},
|
|
|
|
{
|
|
|
|
persist: true,
|