<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 跨域問題完美的解決方案 > 各位親愛的朋友們,最近一直在學習nodejs和webpack的基礎部分,學到關于跨域的問題的終于根據響應的解決辦法找到了最適合`uni-app`社區交友最佳的解決辦法 ![](https://img.kancloud.cn/42/5a/425a118ed1a16e659cc97be605086566_890x153.png) > 就上面的這個問題,我相信這個也是一直在困惑大家的一個問題,現在我把我的解決辦法分享給大家希望大家能夠少踩坑少走彎路 **** **1、打開配置文件`manifest.json`** **2、點擊h5配置** > 因為在源碼視圖中看不到h5的配置項,所以先點擊一下 > ![](https://img.kancloud.cn/f9/f9/f9f9ea0f030eb69f6071d587212fcb64_716x101.png) **3、打開源碼視圖找到如下代碼** ![](https://img.kancloud.cn/60/86/6086c308dd176806be81ef021c03467f_414x154.png) **4、刪除代碼** ```json "router" : { "mode" : "hash" } ``` **5、更新代碼** ```json "h5" : { "devServer" : { "proxy" : { "/dev-api" : { "target" : "http://你的網址/api/v1", "changeOrigin" : true, "pathRewrite" : { "^/dev-api" : "" } } } } } ``` ***除了`你的網址`部分需要修改其他地方請勿修改原封復制即可,修改完成后重新啟動項目*** #### 一定要重新啟動項目哦!!!! **** * 如何進行請求訪問 ``` uni.request({ url:"/dev-api/post/1", success: (res) => { console.log(res) } }) ``` > 然后這時候你已經重啟完項目了,看一下效果ba ![](https://img.kancloud.cn/5d/d7/5dd79c866982a94fce475ca4fb03283b_945x274.png) > 完美解決
                  <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>

                              哎呀哎呀视频在线观看