Skip to content

Commit

Permalink
Update the initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
iheron authored and yilunzhang committed Apr 7, 2022
1 parent 013b427 commit f212292
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions web/dist/200.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!doctype html>
<html lang="en" data-n-head="%7B%22lang%22:%7B%221%22:%22en%22%7D%7D">
<head>
<title>nconnect-web - nconnect-web</title><meta data-n-head="1" charset="utf-8"><meta data-n-head="1" name="viewport" content="width=device-width,initial-scale=1"><meta data-n-head="1" data-hid="description" name="description" content=""><meta data-n-head="1" name="format-detection" content="telephone=no"><meta data-n-head="1" data-hid="charset" charset="utf-8"><meta data-n-head="1" data-hid="mobile-web-app-capable" name="mobile-web-app-capable" content="yes"><meta data-n-head="1" data-hid="apple-mobile-web-app-title" name="apple-mobile-web-app-title" content="nconnect-web"><meta data-n-head="1" data-hid="og:type" name="og:type" property="og:type" content="website"><meta data-n-head="1" data-hid="og:title" name="og:title" property="og:title" content="nconnect-web"><meta data-n-head="1" data-hid="og:site_name" name="og:site_name" property="og:site_name" content="nconnect-web"><meta data-n-head="1" data-hid="og:description" name="og:description" property="og:description" content="## Build Setup"><link data-n-head="1" rel="icon" type="image/x-icon" href="/favicon.ico"><link data-n-head="1" data-hid="shortcut-icon" rel="shortcut icon" href="/favicon.ico"><link data-n-head="1" rel="manifest" href="/_nuxt/manifest.89ffc5b1.json" data-hid="manifest"><base href="/"><link rel="preload" href="/_nuxt/06e5878.js" as="script"><link rel="preload" href="/_nuxt/7383c71.js" as="script"><link rel="preload" href="/_nuxt/d16d513.js" as="script"><link rel="preload" href="/_nuxt/cf60027.js" as="script">
<title>nconnect-web - nconnect-web</title><meta data-n-head="1" charset="utf-8"><meta data-n-head="1" name="viewport" content="width=device-width,initial-scale=1"><meta data-n-head="1" data-hid="description" name="description" content=""><meta data-n-head="1" name="format-detection" content="telephone=no"><meta data-n-head="1" data-hid="charset" charset="utf-8"><meta data-n-head="1" data-hid="mobile-web-app-capable" name="mobile-web-app-capable" content="yes"><meta data-n-head="1" data-hid="apple-mobile-web-app-title" name="apple-mobile-web-app-title" content="nconnect-web"><meta data-n-head="1" data-hid="og:type" name="og:type" property="og:type" content="website"><meta data-n-head="1" data-hid="og:title" name="og:title" property="og:title" content="nconnect-web"><meta data-n-head="1" data-hid="og:site_name" name="og:site_name" property="og:site_name" content="nconnect-web"><meta data-n-head="1" data-hid="og:description" name="og:description" property="og:description" content="## Build Setup"><link data-n-head="1" rel="icon" type="image/x-icon" href="/favicon.ico"><link data-n-head="1" data-hid="shortcut-icon" rel="shortcut icon" href="/favicon.ico"><link data-n-head="1" rel="manifest" href="/_nuxt/manifest.89ffc5b1.json" data-hid="manifest"><base href="/"><link rel="preload" href="/_nuxt/d55e9d3.js" as="script"><link rel="preload" href="/_nuxt/7383c71.js" as="script"><link rel="preload" href="/_nuxt/d16d513.js" as="script"><link rel="preload" href="/_nuxt/cf60027.js" as="script">
</head>
<body>
<div id="__nuxt"><style>#nuxt-loading{background:#fff;visibility:hidden;opacity:0;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;flex-direction:column;animation:nuxtLoadingIn 10s ease;-webkit-animation:nuxtLoadingIn 10s ease;animation-fill-mode:forwards;overflow:hidden}@keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}@-webkit-keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}#nuxt-loading>div,#nuxt-loading>div:after{border-radius:50%;width:5rem;height:5rem}#nuxt-loading>div{font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid #f5f5f5;border-left:.5rem solid #000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:nuxtLoading 1.1s infinite linear;animation:nuxtLoading 1.1s infinite linear}#nuxt-loading.error>div{border-left:.5rem solid #ff4500;animation-duration:5s}@-webkit-keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}</style><script>window.addEventListener("error",function(){var e=document.getElementById("nuxt-loading");e&&(e.className+=" error")})</script><div id="nuxt-loading" aria-live="polite" role="status"><div>Loading...</div></div></div><script>window.__NUXT__={config:{_app:{basePath:"/",assetsPath:"/_nuxt/",cdnURL:null}},staticAssetsBase:"/_nuxt/static/1646709952"}</script>
<script src="/_nuxt/06e5878.js"></script><script src="/_nuxt/7383c71.js"></script><script src="/_nuxt/d16d513.js"></script><script src="/_nuxt/cf60027.js"></script></body>
<div id="__nuxt"><style>#nuxt-loading{background:#fff;visibility:hidden;opacity:0;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;flex-direction:column;animation:nuxtLoadingIn 10s ease;-webkit-animation:nuxtLoadingIn 10s ease;animation-fill-mode:forwards;overflow:hidden}@keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}@-webkit-keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}#nuxt-loading>div,#nuxt-loading>div:after{border-radius:50%;width:5rem;height:5rem}#nuxt-loading>div{font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid #f5f5f5;border-left:.5rem solid #000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:nuxtLoading 1.1s infinite linear;animation:nuxtLoading 1.1s infinite linear}#nuxt-loading.error>div{border-left:.5rem solid #ff4500;animation-duration:5s}@-webkit-keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}</style><script>window.addEventListener("error",function(){var e=document.getElementById("nuxt-loading");e&&(e.className+=" error")})</script><div id="nuxt-loading" aria-live="polite" role="status"><div>Loading...</div></div></div><script>window.__NUXT__={config:{_app:{basePath:"/",assetsPath:"/_nuxt/",cdnURL:null}},staticAssetsBase:"/_nuxt/static/1649322985"}</script>
<script src="/_nuxt/d55e9d3.js"></script><script src="/_nuxt/7383c71.js"></script><script src="/_nuxt/d16d513.js"></script><script src="/_nuxt/cf60027.js"></script></body>
</html>
1 change: 0 additions & 1 deletion web/dist/_nuxt/18b7b37.js

This file was deleted.

1 change: 1 addition & 0 deletions web/dist/_nuxt/a323503.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/dist/_nuxt/06e5878.js → web/dist/_nuxt/d55e9d3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
6 changes: 3 additions & 3 deletions web/dist/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ export default {
console.log(info)
let initialized = this.initialized
this.initialized = true
this.addr = info.addr
this.localIP = info.localIP.ipv4
this.inPrice = info.inPrice
Expand Down Expand Up @@ -342,6 +341,7 @@ export default {
console.error(e);
}
});
this.initialized = true
}
}).catch((e) => {
console.error(e);
Expand Down

0 comments on commit f212292

Please sign in to comment.