Aslee 4 سال پیش
والد
کامیت
b25510ae7d

+ 3 - 0
src/main/resources/static/js/product/qualityauthorize.js

@@ -20,6 +20,7 @@ var qualityAuthorize = new Vue({
         cmContent:'',
         isCmComtent:false,
         message:'',
+        isLoading:false
     },
     filters:{
         snCode:function (code) {
@@ -42,8 +43,10 @@ var qualityAuthorize = new Vue({
                 if(res.code === 0){
                     _that.parameters = res.data;
                     console.log(_that.parameters)
+                    _that.isLoading = true;
                 }else{
                     _that.message = res.msg;
+                    _that.isLoading = true;
                 }
                 // else{
                 //     //如果该产品不存在,跳转到404页面

+ 1 - 1
src/main/resources/templates/product/qualityauthorize.html

@@ -117,7 +117,7 @@
         </transition>
     </template>
     <template v-else>
-        <div class="not-found">
+        <div class="not-found" v-if="isLoading">
             <img src="https://static.caimei365.com/www/not-found.png">
             <p>该商品授权信息不存在!</p>
         </div>