|
@@ -2,32 +2,38 @@
|
|
<div id="app">
|
|
<div id="app">
|
|
<nav-bar />
|
|
<nav-bar />
|
|
<div class="wrap">
|
|
<div class="wrap">
|
|
- <left-aside class="menu"></left-aside>
|
|
|
|
|
|
+ <left-aside class="menu" v-if="isSdk"></left-aside>
|
|
<div class="right"><router-view /></div>
|
|
<div class="right"><router-view /></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
|
|
|
+<script setup>
|
|
import NavBar from "@/components/navBar.vue";
|
|
import NavBar from "@/components/navBar.vue";
|
|
import LeftAside from "@/components/leftAside.vue";
|
|
import LeftAside from "@/components/leftAside.vue";
|
|
-export default {
|
|
|
|
- components: { NavBar, LeftAside },
|
|
|
|
- setup() {},
|
|
|
|
-};
|
|
|
|
|
|
+import { computed } from "vue";
|
|
|
|
+import { useRoute } from "vue-router";
|
|
|
|
+
|
|
|
|
+const isSdk = computed(() => useRoute().fullPath.startsWith("/sdk"));
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
<style lang="less">
|
|
|
|
+@font-face {
|
|
|
|
+ font-family: MiSans Regular;
|
|
|
|
+ src: url("./fonts/MiSans-Regular.ttf");
|
|
|
|
+}
|
|
|
|
+
|
|
html,
|
|
html,
|
|
body {
|
|
body {
|
|
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
|
|
|
|
- Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
color: #444;
|
|
color: #444;
|
|
}
|
|
}
|
|
|
|
|
|
body {
|
|
body {
|
|
|
|
+ font-family: -apple-system, MiSans Regular, BlinkMacSystemFont, "Segoe UI",
|
|
|
|
+ Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
|
|
|
|
+ "Helvetica Neue", sans-serif;
|
|
font-size: 14px !important;
|
|
font-size: 14px !important;
|
|
/* prettier-ignore */
|
|
/* prettier-ignore */
|
|
min-width: 700PX;
|
|
min-width: 700PX;
|