diff --git a/src/api/system/apply.ts b/src/api/system/apply.ts index 329bef1e..374a997b 100644 --- a/src/api/system/apply.ts +++ b/src/api/system/apply.ts @@ -13,7 +13,7 @@ export const delApply_api = (id: string) => server.remove(`/application/${id}`) // 获取组织列表 export const getDepartmentList_api = (params: any) => server.get(`/organization/_all/tree`, params); // 获取应用详情 -export const getAppInfo_api = (id: string) => server.get(`/application/${id}`); +export const getAppInfo_api = (id: string) => server.get(`/application/${id}`); // 新增应用 export const addApp_api = (data: object) => server.post(`/application`, data); // 更新应用 diff --git a/src/components/ValueItem/index.vue b/src/components/ValueItem/index.vue index 09d33c26..769951c6 100644 --- a/src/components/ValueItem/index.vue +++ b/src/components/ValueItem/index.vue @@ -176,8 +176,8 @@ const objectValue = ref(''); const handleItemModalSubmit = () => { myValue.value = objectValue.value.replace(/[\r\n]\s*/g, ''); modalVis.value = false; + emit('update:modelValue', objectValue.value); emit('change', objectValue.value) - emit('update:modelValue', myValue.value); }; // 文件上传 @@ -192,23 +192,23 @@ const handleFileChange = (info: UploadChangeParam>) => { }; const selectChange = (e: string, option: any) => { - emit('change', e, option) emit('update:modelValue', myValue.value); + emit('change', e, option) } const timeChange = (e: any) => { - emit('change', e) emit('update:modelValue', myValue.value); + emit('change', e) } const inputChange = (e: any) => { - emit('change', e && e.target ? e.target.value : e) emit('update:modelValue', myValue.value); + emit('change', e && e.target ? e.target.value : e) } const dateChange = (e: any) => { - emit('change', e) emit('update:modelValue', myValue.value); + emit('change', e) } myValue.value = props.modelValue diff --git a/src/utils/request.ts b/src/utils/request.ts index 1bf7ad8a..2b8d2cb7 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -122,7 +122,7 @@ const showNotification = (message: string, description: string, key?: string, sh if (show) { Notification.error({ key, - message, + message: '', description }) } diff --git a/src/views/account/Center/index.vue b/src/views/account/Center/index.vue index dc63f735..ffb6eaa0 100644 --- a/src/views/account/Center/index.vue +++ b/src/views/account/Center/index.vue @@ -265,7 +265,7 @@ const unBind = (id: string) => { }; const clickBind = (id: string) => { window.open( - `${location.host}${BASE_API_PATH}/application/sso/${id}/login?autoCreateUser=false`, + `${BASE_API_PATH}/application/sso/${id}/login?autoCreateUser=false`, ); localStorage.setItem('onBind', 'false'); localStorage.setItem('onLogin', 'yes'); diff --git a/src/views/device/Instance/Detail/Function/components/Simple.vue b/src/views/device/Instance/Detail/Function/components/Simple.vue index fb0f2247..add55c46 100644 --- a/src/views/device/Instance/Detail/Function/components/Simple.vue +++ b/src/views/device/Instance/Detail/Function/components/Simple.vue @@ -6,7 +6,7 @@ 精简模式下参数只支持输入框的方式录入 - +