795fe926 by lihua

fix

1 parent a96541d4
...@@ -104,7 +104,7 @@ const asideSubmitForm = async () => { ...@@ -104,7 +104,7 @@ const asideSubmitForm = async () => {
104 asideSearch(); 104 asideSearch();
105 getAllAsideData(); 105 getAllAsideData();
106 } else { 106 } else {
107 proxy.$ElMessage.error(res?.msg); 107 res?.msg && proxy.$ElMessage.error(res?.msg);
108 } 108 }
109 }) 109 })
110 } 110 }
...@@ -154,7 +154,7 @@ const classEditFormItems = ref([ ...@@ -154,7 +154,7 @@ const classEditFormItems = ref([
154 { 154 {
155 label: '界面排序', 155 label: '界面排序',
156 type: 'input', 156 type: 'input',
157 maxlength: 50, 157 maxlength: 10,
158 placeholder: '请输入', 158 placeholder: '请输入',
159 field: 'orderNum', 159 field: 'orderNum',
160 regexp: /[^\d]/g, 160 regexp: /[^\d]/g,
...@@ -287,7 +287,7 @@ const toAsideDelete = (data) => { // 删除 ...@@ -287,7 +287,7 @@ const toAsideDelete = (data) => { // 删除
287 asideSearch(); 287 asideSearch();
288 getAllAsideData(); 288 getAllAsideData();
289 } else { 289 } else {
290 proxy.$ElMessage.error(res?.msg); 290 res?.msg && proxy.$ElMessage.error(res?.msg);
291 } 291 }
292 }) 292 })
293 }, () => { 293 }, () => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!