diff --git a/src/store/instance.ts b/src/store/instance.ts
index 92e06b47..63c49e0a 100644
--- a/src/store/instance.ts
+++ b/src/store/instance.ts
@@ -16,14 +16,10 @@ export const useInstanceStore = defineStore({
this.detail = current
},
async refresh(id: string) {
- const resp: any = await detail(id).catch((err) => {
- onlyMessage(err.response.data.message, 'error')
- })
+ const resp: any = await detail(id)
if(resp.status === 200){
this.current = resp.result
this.detail = resp.result
- } else {
- onlyMessage(resp?.message, 'error')
}
},
setTabActiveKey(key: string) {
diff --git a/src/utils/request.ts b/src/utils/request.ts
index 2b8d2cb7..2760425b 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -151,6 +151,8 @@ const errorHandler = (error: any) => {
path: LoginPath
})
}, 0)
+ } else if (status === 404) {
+ showNotification(error?.code, error?.response?.data?.message, '404')
}
} else if (error.response === undefined) {
showNotification(error.message, (error.stack + '').substr(0, 90), undefined)
diff --git a/src/views/edge/Device/index.vue b/src/views/edge/Device/index.vue
index 8aae7440..6545579f 100644
--- a/src/views/edge/Device/index.vue
+++ b/src/views/edge/Device/index.vue
@@ -53,7 +53,8 @@
@@ -85,8 +86,42 @@
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+ {{ o?.text }}
+
+
+
+
+