ソースを参照

[Improvement-5144][UI] error v-show directives cannot be put on template tags (#5145)

* fix error v-show directives cannot be put on template tags.

* rerun e2e.
zhuangchong 4 年 前
コミット
f6d62a4924

+ 2 - 2
dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/gantt/index.vue

@@ -29,10 +29,10 @@
             </a>
           </div>
         </div>
-        <template v-show="!isNodata">
+        <template v-if="!isNodata">
           <div class="gantt"></div>
         </template>
-        <template v-if="isNodata">
+        <template v-else>
           <m-no-data></m-no-data>
         </template>
         <m-spin :is-spin="isLoading">

+ 2 - 3
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/edit/index.vue

@@ -21,7 +21,7 @@
         <h2>
           <span>{{name}}</span>
         </h2>
-        <template v-show="isViewType">
+        <template v-if="isViewType">
           <template v-if="!msg">
             <div class="code-mirror-model">
               <textarea id="code-edit-mirror" name="code-edit-mirror"></textarea>
@@ -32,9 +32,8 @@
             </div>
           </template>
           <m-no-data :msg="msg" v-if="msg"></m-no-data>
-
         </template>
-        <template v-if="!isViewType">
+        <template v-else>
           <m-no-type></m-no-type>
         </template>
       </div>