已支付订单列表:where.payStatus = 1;
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_layout_index = require("../../api/layout/index.js");
|
||||
const useTenantStore = common_vendor.defineStore({
|
||||
id: "tenant",
|
||||
state: () => ({
|
||||
// 租户信息
|
||||
tenant: null,
|
||||
// 企业信息
|
||||
company: null,
|
||||
// 参数配置
|
||||
params: {}
|
||||
}),
|
||||
getters: {},
|
||||
actions: {
|
||||
/**
|
||||
* 请求用户信息、权限、角色、菜单
|
||||
*/
|
||||
async fetchTenantInfo() {
|
||||
const company = await api_layout_index.getSiteInfo().catch(() => void 0);
|
||||
if (!company) {
|
||||
return {};
|
||||
}
|
||||
this.company = company;
|
||||
if (company) {
|
||||
this.company = company;
|
||||
}
|
||||
return company;
|
||||
},
|
||||
/**
|
||||
* 更新租户信息
|
||||
*/
|
||||
setInfo(value) {
|
||||
this.tenant = value;
|
||||
}
|
||||
}
|
||||
});
|
||||
exports.useTenantStore = useTenantStore;
|
||||
Reference in New Issue
Block a user