luguang před 2 měsíci
rodič
revize
88f6a06e63

+ 5 - 1
src/views/admin/monitor/cache/components/edit.vue

@@ -49,7 +49,11 @@ export default {
     async getLocalData() {
       const { code, retObj } = await this.getApi({ key: this.cacheKey })
       if (code === 0) {
-        this.$set(this.editForm, 'value', retObj)
+        if (retObj.startsWith('{')) {
+          this.$set(this.editForm, 'value', retObj.replaceAll('\\', ''))
+        } else {
+          this.$set(this.editForm, 'value', retObj)
+        }
       }
     },
     confirmClick() {