代码优化

This commit is contained in:
GaoHao
2025-03-26 13:34:19 +08:00
parent e928fdfa2a
commit 413222a5f0
42 changed files with 166 additions and 531 deletions

View File

@@ -66,7 +66,6 @@
<script setup>
import { reactive, ref, watch } from 'vue';
import { onLoad } from '@dcloudio/uni-app'
import { $status } from '@/commons/table-status.js'
import { getShopTable } from '@/http/api/table.js'
import { getShopArea} from '@/http/api/area.js'
@@ -149,7 +148,7 @@
* @param {Object} key
*/
function returnStutasText(key) {
const item = $status[key]
const item = uni.$dict.tableStatus[key]
return item ? item.label : ''
}
@@ -158,7 +157,7 @@
* @param {Object} key
*/
function returnStutasColor(key) {
const item = $status[key]
const item = uni.$dict.tableStatus[key]
return item ? item.type : ''
}