<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ### 步驟一 ## 在manifest.json文件中配置跨域 ~~~javascript "h5" : { "devServer" : { "disableHostCheck" : true, // 開啟可以用自己的域名 "proxy": { "/api": { "target": "https://www.test.com", "changeOrigin" : true, "secure" : false, "pathRewrite": { //匹配請求路徑里面有 /api 會替換成https://www.test.com // 舉例:/api/api/user => https://www.test.com/api/user "^/api": "" } } } } } ~~~ ### 步驟二 很重要,很多人配置了步驟一沒效果,因為步驟二沒配置好 ~~~ 就是接口請求的時候,域名要改為/api,不能是正式域名,因為pathReweite已經幫你轉了 舉個栗子 baseUrl = process.env.NODE_ENV === 'development' ? '/api' : 'https://www.test.com' 或(baseUrl:"/api/api/") 然后uni.request請求的url應該是這樣:baseUrl + '/user/info' 然后瀏覽器看到的請求地址應該是 http://localhost:8080/user/info ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看