diff --git a/src/components/Device/components/ControlBar/AppInstall/index.vue b/src/components/Device/components/ControlBar/AppInstall/index.vue index 644eaf5..1f951e7 100644 --- a/src/components/Device/components/ControlBar/AppInstall/index.vue +++ b/src/components/Device/components/ControlBar/AppInstall/index.vue @@ -37,7 +37,8 @@ export default { } catch (error) { if (error.message) { - this.$message.warning(error.message) + const message = error.message?.match(/Error: (.*)/)?.[1] + this.$message.warning(message || error.message) } } diff --git a/src/components/Device/components/ControlBar/FileManage/index.vue b/src/components/Device/components/ControlBar/FileManage/index.vue index 0435f57..4233ade 100644 --- a/src/components/Device/components/ControlBar/FileManage/index.vue +++ b/src/components/Device/components/ControlBar/FileManage/index.vue @@ -44,7 +44,8 @@ export default { } catch (error) { if (error.message) { - this.$message.warning(error.message) + const message = error.message?.match(/Error: (.*)/)?.[1] + this.$message.warning(message || error.message) } }