From 9057e04efad1b7d61c77a72e5c37a504d0aee935 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 26 九月 2025 09:24:03 +0800
Subject: [PATCH] H5静态化
---
admin/src/filters/index.js | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/admin/src/filters/index.js b/admin/src/filters/index.js
index 77559ba..c5f193c 100644
--- a/admin/src/filters/index.js
+++ b/admin/src/filters/index.js
@@ -10,12 +10,17 @@
}
return '鏈煡'
})
- // 鍚敤绂佺敤
- Vue.filter('disabledText', (value) => {
- if (value) {
- return '鍋滅敤'
- }
- return '鍚敤'
+ // 鏄惁鏂囨锛圷es Or No锛�
+ Vue.filter('YONText', value => {
+ return value ? '鏄�' : '鍚�'
+ })
+ // 鏄惁鍚敤鏂囨
+ Vue.filter('enableText', value => {
+ return value ? '鍚敤' : '绂佺敤'
+ })
+ // 鏄惁绂佺敤鏂囨
+ Vue.filter('disabledText', value => {
+ return value ? '绂佺敤' : '鍚敤'
})
Vue.filter('disabledText1', (value) => {
if (value) {
--
Gitblit v1.9.3