From 472319f6fb7e7a6b3ae54e0856c688f46d18b055 Mon Sep 17 00:00:00 2001 From: Iruka <1017819588@qq.com> Date: Wed, 19 Feb 2025 18:47:57 +0800 Subject: [PATCH] . --- utils/indexUtil/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/utils/indexUtil/index.js b/utils/indexUtil/index.js index 04cc2f6..bf1fe3e 100644 --- a/utils/indexUtil/index.js +++ b/utils/indexUtil/index.js @@ -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("操作失败!") } })