wui-components-v2 1.0.76 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -68,7 +68,6 @@ function handleSubmit() {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
catch (error: any) {
|
|
71
|
-
toast.error({ msg: error })
|
|
72
71
|
console.log(error, 'error')
|
|
73
72
|
}
|
|
74
73
|
}
|
|
@@ -94,7 +93,7 @@ function handleSubmit() {
|
|
|
94
93
|
:rules="[{ required: true, message: '请填写用户名' }]"
|
|
95
94
|
/>
|
|
96
95
|
<wd-input
|
|
97
|
-
v-model="model.password" label="密码" label-width="100px" prop="password" show-password
|
|
96
|
+
v-model="model.password" label="密码" label-width="100px" prop="password" clearable show-password
|
|
98
97
|
placeholder="请输入密码" :rules="[{ required: true, message: '请填写密码' }]"
|
|
99
98
|
/>
|
|
100
99
|
<view class="p-4 pb-0 pt-0">
|
|
@@ -551,7 +551,7 @@ function rowEdit(group: Groups, field: Entities) {
|
|
|
551
551
|
*/
|
|
552
552
|
function canClick(group: Groups) {
|
|
553
553
|
if (group.max) {
|
|
554
|
-
if (pageConfig.value.entity.arrayMap[group.id] && pageConfig.value.entity.arrayMap[group.id].length >= group.max) {
|
|
554
|
+
if (pageConfig.value.entity && pageConfig.value.entity.arrayMap[group.id] && pageConfig.value.entity.arrayMap[group.id].length >= group.max) {
|
|
555
555
|
return true
|
|
556
556
|
}
|
|
557
557
|
else {
|
|
@@ -6,6 +6,7 @@ import { onShow } from '@dcloudio/uni-app'
|
|
|
6
6
|
import { menu } from '../../api/menu'
|
|
7
7
|
import DemoCard from '../demo-card/demo-card.vue'
|
|
8
8
|
import { useManualTheme } from '../../composables/useManualTheme'
|
|
9
|
+
import { useGlobalToast } from '../../composables/useGlobalToast'
|
|
9
10
|
|
|
10
11
|
defineOptions({
|
|
11
12
|
name: 'WuiMenus',
|
|
@@ -21,7 +22,7 @@ const props = defineProps({
|
|
|
21
22
|
},
|
|
22
23
|
})
|
|
23
24
|
const router = useRouter()
|
|
24
|
-
|
|
25
|
+
const toast = useGlobalToast()
|
|
25
26
|
interface Icon {
|
|
26
27
|
id: string
|
|
27
28
|
path: string
|
|
@@ -144,7 +145,10 @@ function queryList() {
|
|
|
144
145
|
menu().then((res: any) => {
|
|
145
146
|
// 将请求结果通过complete传给z-paging处理,同时也代表请求结束,这一行必须调用
|
|
146
147
|
if (!res?.blocks.length) {
|
|
147
|
-
|
|
148
|
+
toast.warning('暂无权限,请联系管理员')
|
|
149
|
+
setTimeout(() => {
|
|
150
|
+
router.replaceAll('/pages/login/index')
|
|
151
|
+
}, 1000)
|
|
148
152
|
}
|
|
149
153
|
paging.value.complete(res?.blocks || [])
|
|
150
154
|
// uni.setNavigationBarTitle({ title: res.data?.programName || '' })
|