Bläddra i källkod

-- 首屏加载后,路由拦截仍有白屏,注释首屏加载动画

yx 4 år sedan
förälder
incheckning
cac74f5bd6
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. 2 2
      public/index.html
  2. 2 2
      src/main.ts

+ 2 - 2
public/index.html

@@ -122,7 +122,7 @@
     <div style="height:26px;background-color:#efefef;padding:0 10px" id="wd-fm"></div>
     <div id="app">
         <!-- 首屏加载,只在main.ts中写时,页面还是有很长时间的空白,故在此也写首屏加载 -->
-            <div class="p-index-loading">
+            <!-- <div class="p-index-loading">
                 <ul class="p-index-loading-box">
                     <li class="p-index-loading-list p-index-loading-list-1" />
                     <li class="p-index-loading-list p-index-loading-list-2" />
@@ -131,7 +131,7 @@
                     <li class="p-index-loading-list p-index-loading-list-5" />
                     <li class="p-index-loading-list p-index-loading-list-6" />
                 </ul>
-            </div>
+            </div> -->
     </div>
     <script>
         // 指定条问题

+ 2 - 2
src/main.ts

@@ -44,7 +44,7 @@ const username = 'lengqiang'
 //     next()
 // })
 // 注册首屏加载
-import { IndexLoading } from 'meri-design'
+/* import { IndexLoading } from 'meri-design'
 const indexLoading = IndexLoading();
 // 注册关闭方法,需要手动关闭
 Vue.prototype.$removeIndexLoading = () => {
@@ -54,7 +54,7 @@ document.addEventListener('readystatechange',()=>{
     if (document.readyState === 'complete') {
         IndexLoading.remove(indexLoading)
     }
-})
+}) */
 
 
 new Vue({