完成了node的分页组合条件查询
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { Login } from "./../../api/interface/index";
|
||||
import { defineStore } from "pinia";
|
||||
import { UserState } from "@/stores/interface";
|
||||
import piniaPersistConfig from "@/config/piniaPersist";
|
||||
@@ -6,7 +7,7 @@ export const useUserStore = defineStore({
|
||||
id: "geeker-user",
|
||||
state: (): UserState => ({
|
||||
token: "",
|
||||
userInfo: { name: "张三" }
|
||||
userInfo: { userid: 0, username: "", name: "", access_token: "", expire_datetime: "" }
|
||||
}),
|
||||
getters: {},
|
||||
actions: {
|
||||
@@ -15,7 +16,7 @@ export const useUserStore = defineStore({
|
||||
this.token = token;
|
||||
},
|
||||
// Set setUserInfo
|
||||
setUserInfo(userInfo: UserState["userInfo"]) {
|
||||
setUserInfo(userInfo: Login.ResLogin) {
|
||||
this.userInfo = userInfo;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user