Ver código fonte

fix: receiving card's topology file upload

Casper Dai 3 anos atrás
pai
commit
83a2564bd8

+ 3 - 3
src/views/device/detail/components/ReceivingCardInfoEdit.vue

@@ -109,8 +109,8 @@
           drag
         >
           <div class="l-flex--row">
-            <template v-if="receivingCard.topology">
-              <div class="o-upload__file">{{ receivingCard.topology.name }}</div>
+            <template v-if="receivingCard.topologyFile">
+              <div class="o-upload__file">{{ receivingCard.topologyFile.name }}</div>
             </template>
             <template v-else>
               添加拓扑结构文件将文件拖动到本窗口上传或
@@ -289,7 +289,7 @@ export default {
       this.show = false
     },
     save () {
-      if (!this.receivingCard.topology) {
+      if (!this.receivingCard.topologyFile) {
         this.$message({
           type: 'warning',
           message: '请选择拓扑结构文件'