Explorar o código

优化文档浏览组件中文件URL设置时机

yusheng hai 5 meses
pai
achega
78150612a4
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/views/doc/components/browse.vue

+ 2 - 1
src/views/doc/components/browse.vue

@@ -55,8 +55,9 @@
         this.fileUrl = '';
         this.isShow = false;
 
-        this.fileUrl = setFileUrl(row);
         this.$nextTick(() => {
+          this.fileUrl = setFileUrl(row);
+
           this.$refs.Iframe.onload = () => {
             this.loading = false;
             this.isShow = true;