This commit is contained in:
Iruka 2025-02-20 12:27:43 +08:00
parent 30343dc7bc
commit e1b53fbc2e
2 changed files with 2 additions and 8 deletions

View File

@ -3,14 +3,14 @@
empty-view-text="抱歉,暂时还没有相关数据!"> empty-view-text="抱歉,暂时还没有相关数据!">
<template #top> <template #top>
<custom-nav-bar :left="true" title="设备运维"></custom-nav-bar> <custom-nav-bar :left="true" title="设备运维"></custom-nav-bar>
<view class="search"> <!-- <view class="search">
<uni-forms ref="form" labelWidth="0px"> <uni-forms ref="form" labelWidth="0px">
<uni-forms-item label="" name=""> <uni-forms-item label="" name="">
<custom-land-tree :defaultLand="land" @change="handleTreeChange" <custom-land-tree :defaultLand="land" @change="handleTreeChange"
style="width: 100%;float: left;margin-right: 2px;"></custom-land-tree> style="width: 100%;float: left;margin-right: 2px;"></custom-land-tree>
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
</view> </view> -->
</template> </template>
<view class="card"> <view class="card">

View File

@ -49,15 +49,9 @@ class indexUtil {
} }
get getLandData() { get getLandData() {
console.error("land");
if (!user?.userId) {
toast("请重新登录")
return null;
}
if (!this.land) { if (!this.land) {
this.initData(user.userId, function(_land, _wo) {}); this.initData(user.userId, function(_land, _wo) {});
} }
return this.land; return this.land;
} }