Browse Source

修复代码预览复制内容问题(I5E3P1)

RuoYi 2 năm trước cách đây
mục cha
commit
1def54572a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/tool/gen/index.vue

+ 1 - 1
src/views/tool/gen/index.vue

@@ -161,7 +161,7 @@
           v-for="(value, key) in preview.data"
           :label="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
           :name="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
-          :key="key"
+          :key="value"
         >
           <el-link :underline="false" icon="DocumentCopy" v-copyText="value" v-copyText:callback="copyTextSuccess" style="float:right">&nbsp;复制</el-link>
           <pre>{{ value }}</pre>