修复下面的问题 和其他页面中的类似问题
1.apps/web-antd/src/views/iot/device/device/modules/DeviceForm.vue
type 是和方法分离的
2.apps/web-antd/src/views/iot/device/device/modules/detail/DeviceDetailsMessage.vue
const getMessageList = async () => {
方法使用function 不要用const,保持一致
3.apps/web-antd/src/views/iot/device/device/modules/detail/DeviceDetailsMessage.vue
<script setup lang="ts">
文件结构是
4.apps/web-antd/src/views/iot/rule/data/rule/index.vue
handleRefresh 统一命名
Signed-off-by: Administrator <425053404@qq.com>
This commit is contained in:
@@ -61,7 +61,7 @@ const formData = ref<any>({
|
||||
const formRef = ref(); // 表单 Ref
|
||||
|
||||
/** 打开弹窗 */
|
||||
const open = async (type: string, id?: number) => {
|
||||
async function open(type: string, id?: number) {
|
||||
dialogVisible.value = true;
|
||||
// 设置标题:create -> 新增,update -> 编辑
|
||||
dialogTitle.value = type === 'create' ? $t('page.action.add') : $t('page.action.edit');
|
||||
@@ -137,7 +137,7 @@ const open = async (type: string, id?: number) => {
|
||||
formLoading.value = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
defineExpose({ open, close: () => (dialogVisible.value = false) });
|
||||
|
||||
async function submitForm() {
|
||||
|
||||
Reference in New Issue
Block a user