This commit is contained in:
Iruka 2025-02-19 18:47:57 +08:00
parent dad848b4c3
commit 472319f6fb

View File

@ -1,8 +1,9 @@
import store from "@/store"
const user = store.state.user.user;
import plugin from "@/plugins"
import constant from "@/utils/constant.js"
import * as commonUtils from "@/utils/common.js"
import {
toast
} from "@/utils/common"
import {
companyTreeSelect
} from "@/api/system/company.js"
@ -50,7 +51,7 @@ class indexUtil {
get getLandData() {
console.error("land");
if (!user?.userId) {
plugin.modal.msg("请重新登录")
toast("请重新登录")
return null;
}
if (!this.land) {
@ -106,7 +107,7 @@ class indexUtil {
that.companys = response.data;
that.setStorage(constant.companys, JSON.parse(JSON.stringify(response.data)));
} else {
commonUtils.toast("无数据");
toast("无数据");
that.companys = [];
that.selectItem = null;
uni.removeStorage(constant.companys);
@ -190,7 +191,7 @@ class indexUtil {
reject(error)
})
} else {
commonUtils.toast("操作失败!");
toast("操作失败!");
reject("操作失败!")
}
})