From 517091a5ca56a367fae17c535783f3025afa8af9 Mon Sep 17 00:00:00 2001 From: viarotel Date: Thu, 9 Nov 2023 16:22:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=93=9D=20Operation=20description?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Device/components/ControlBar/AppInstall/index.vue | 3 ++- .../Device/components/ControlBar/FileManage/index.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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) } }