提交 7873b991 编写于 作者: D DCloud_LXH

update: api readme

上级 ff93f8e4
......@@ -171,7 +171,7 @@
},
};
</script>
<style>
<style scoped>
/* banner */
.banner {
width: 100%;
......@@ -239,62 +239,4 @@
border-radius: 10px;
background: rgb(225, 114, 0);
}
/* 修改左侧导航 */
.sidebar .sidebar-nav {
padding: 0 0 11px 0;
}
.sidebar ul {
padding-left: 15px;
}
.sidebar ul li a:hover {
text-decoration: none;
background-color: #eff1f3;
}
.sidebar ul li.active > a:hover {
background-color: #ffffff;
}
.sidebar::-webkit-scrollbar {
width: 6px;
}
/* 处理左侧导航的折叠问题TODO */
.sidebar-nav-li.close ul {
display: none;
}
.sidebar-nav-li .chapter {
display: block;
height: 30px;
line-height: 30px;
position: relative;
cursor: pointer;
}
.sidebar-nav-li .chapter:hover {
background-color: #eff1f3;
}
.sidebar-nav-li .chapter:before {
position: absolute;
top: 10px;
left: -16px;
content: '\e581';
font-family: 'uniicons';
font-style: normal;
font-weight: 600;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: greyscale;
color: #8d8d8d;
font-size: 10px;
}
.sidebar-nav-li.close .chapter:before {
content: '\e583';
}
</style>
......@@ -3,8 +3,8 @@
<div class="main-navbar">
<!-- <SidebarButton @toggle-sidebar="$emit('toggle-sidebar')" /> -->
<RouterLink
:to="$localePath"
<a
href="https://www.dcloud.io"
class="home-link"
>
<img
......@@ -25,7 +25,7 @@
class="site-name"
:class="{ 'can-hide': $site.themeConfig.logo }"
>{{ $siteTitle }}</span>
</RouterLink>
</a>
<div class="main-navbar-links can-hide">
<template v-for="(item, index) in customNavBar">
......@@ -189,7 +189,8 @@ export default {
forbidScroll(this.showMobilePanel)
},
switchVersion () {
document.cookie = encodeURIComponent('__new_version') + "=__new_version; path=/"
// document.cookie = encodeURIComponent('__new_version') + "=__new_version; path=/"
document.cookie = encodeURIComponent('__new_version') + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"
location.replace(location.origin + '?v=' + Date.now())
}
},
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册