瀏覽代碼

git获取代码调整

haojianlong 4 年之前
父節點
當前提交
482bb1eb88

+ 1 - 4
docs/.vuepress/components/GitCode.vue

@@ -49,10 +49,7 @@
             init(){
                 axios({
                     method: "get",
-                    url: this.requestUrl,
-                    headers: {
-                        'Authorization': "Basic " + btoa(this.username + ":" + this.password)
-                    }
+                    url: this.requestUrl
                 }).then(res => {
                     this.code = res.data;
                     this.$nextTick(()=>{

+ 5 - 2
docs/.vuepress/config.js

@@ -2,8 +2,8 @@ const setupContent = require("../setup/index");
 const graphContent = require("../guides/index");
 
 module.exports = {
-    title: "数字化交付开发文档",
-    description: "上格云数字化交付开发文档",
+    title: "博锐尚格 Web 组件开发文档",
+    description: "博锐尚格 Web 组件开发文档",
     base: "/doc/web/",
     plugins: [
         "@vuepress/last-updated",
@@ -117,6 +117,9 @@ module.exports = {
                 pathRewrite: {
                     '^/git': '',
                 },
+                bypass: function(req, res, proxyOptions) {
+                    req.headers["Authorization"] = "Basic bGJzbDoyMDIwMDgyOQ=="
+                }
             }
         }
     }

+ 0 - 1
docs/.vuepress/templates/dev.html

@@ -8,7 +8,6 @@
 <body>
 <script>
     const Image = window.Image;//定义global
-    const btoa = window.btoa;
 </script>
 <div id="app"></div>
 </body>

+ 0 - 1
docs/.vuepress/templates/ssr.html

@@ -11,7 +11,6 @@
     {{{ renderStyles() }}}
     <script>
         const Image = window.Image;//定义global变量
-        const btoa = window.btoa;
     </script>
 </head>
 <body>

+ 6 - 0
docs/guides/standard/typescript.md

@@ -1,3 +1,9 @@
 # typescript 编写规范
 
+::: details 目录
+[[toc]]
+:::
+
 [返回规范总览](./README.md)
+
+