This commit is contained in:
Shao Huan Qing
2021-07-25 11:44:16 +08:00
parent 24277979a7
commit a2e6ffc17e
9 changed files with 50 additions and 55 deletions

View File

@ -29,7 +29,7 @@
>Kuboard - </span>
</a>
<span class="home-link noselect" style="line-height: 2.2em; font-size: 1em; font-weight: 400;">
<StarCount style="margin-left: 10px;"></StarCount>
<StarCount style="margin: 0 10px;"></StarCount>
<StarCountDockerPulls></StarCountDockerPulls>
<!-- <a href="/learning/">
<span style="color: #42b983;">免费提供K8S教程</span>

View File

@ -49,44 +49,44 @@ export default {
},
components: { OnlineChatLogin },
mounted () {
// if (typeof window !== 'undefined') {
// (function(a, b, c, d, e, j, s) {
// a[d] = a[d] || function() {
// (a[d].a = a[d].a || []).push(arguments)
// };
// j = b.createElement(c),
// s = b.getElementsByTagName(c)[0];
// j.async = true;
// j.charset = 'UTF-8';
// j.src = 'https://static.meiqia.com/widget/loader.js';
// s.parentNode.insertBefore(j, s);
// })(window, document, 'script', '_MEIQIA');
// _MEIQIA('entId', '961dff7f89ddc015ac1f8e193bf774d0');
// _MEIQIA('manualInit');
// _MEIQIA('withoutBtn');
// _MEIQIA('getUnreadMsg', msgs => {
// this.unreadMsgs = msgs
// this.showUnread = true
// });
// _MEIQIA('fallback', 1);
// _MEIQIA('init');
if (typeof window !== 'undefined') {
(function(a, b, c, d, e, j, s) {
a[d] = a[d] || function() {
(a[d].a = a[d].a || []).push(arguments)
};
j = b.createElement(c),
s = b.getElementsByTagName(c)[0];
j.async = true;
j.charset = 'UTF-8';
j.src = 'https://static.meiqia.com/widget/loader.js';
s.parentNode.insertBefore(j, s);
})(window, document, 'script', '_MEIQIA');
_MEIQIA('entId', '961dff7f89ddc015ac1f8e193bf774d0');
_MEIQIA('manualInit');
_MEIQIA('withoutBtn');
_MEIQIA('getUnreadMsg', msgs => {
this.unreadMsgs = msgs
this.showUnread = true
});
_MEIQIA('fallback', 1);
_MEIQIA('init');
// if (this.$route.path.indexOf('/install/v3/') === 0) {
// setTimeout(_ => {
// this.loginSuccess()
// }, 3000)
// }
// }
if (this.$route.path.indexOf('/install/v3/') === 0) {
setTimeout(_ => {
this.loginSuccess()
}, 3000)
}
}
},
watch: {
// '$route.path': function (newValue, oldValue) {
// if (newValue.indexOf('/install/v3/') === 0) {
// this.loginSuccess()
// }
// if (newValue.indexOf('/install/v3/') !== 0 && !Cookies.get(TOKEN_KEY)) {
// _MEIQIA('hidePanel')
// }
// }
'$route.path': function (newValue, oldValue) {
if (newValue.indexOf('/install/v3/') === 0) {
this.loginSuccess()
}
if (newValue.indexOf('/install/v3/') !== 0 && !Cookies.get(TOKEN_KEY)) {
_MEIQIA('hidePanel')
}
}
},
methods: {
showChat () {

View File

@ -14,13 +14,13 @@
<div class="side-nav-item" :style="activeLinkStyle('/learning/')">
<a :href="`/learning/${urlSurfix}`" class="nav-link router-link-exact-active router-link-active">教程</a>
</div>
<!-- <div class="side-nav-item" :style="activeLinkStyle('/guide/')">
<div class="side-nav-item" :style="activeLinkStyle('/guide/')">
<a :href="`/guide/${urlSurfix}`" class="nav-link">使用</a>
</div> -->
<!-- <div class="side-nav-item" :style="activeLinkStyle('/support/')">
</div>
<div class="side-nav-item" :style="activeLinkStyle('/support/')">
<a :href="`/support/${urlSurfix}`" class="nav-link">支持</a>
</div>
<div class="side-nav-item" :style="activeLinkStyle('/forum/')">
<!-- <div class="side-nav-item" :style="activeLinkStyle('/forum/')">
<a :href="`https://forum.kuboard.cn`" target="_blank" class="nav-link">论坛</a>
</div> -->
<KuboardDemo class="side-nav-item" suffix="sidebar"></KuboardDemo>