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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                #### 1、問題描述 按如下配置,打包部署到服務器上以后,訪問頁面,JS都能正常加載,頁面白屏,但使用打包后的文件,在本地使用http-server啟動服務,可以正常訪問。 ``` server_host: '192.168.5.16', server_port: process.env.PORT || 8091, project_name: '/bj-keshihua' ``` #### 2、原因分析 部署到服務器以上,JS能正常加載,但沒有執行加載的JS文件,由于部署到服務器以后,可訪問的資源就只有一個HTML文件,通過在HTML中加載JS執行,前端代碼中路由配置如下: ``` {/* 總覽頁 */} <Route path='/home' exact component={Index} /> {/* 執法辦案 */} <Route path='/lawEnfo' exact component={LawEnforcement} /> ``` 由于服務器上并沒有`/home`這樣的資源,匹配不到對應的路徑,導致頁面無法渲染。 #### 3、解決方案 前端路由配置重定向,當匹配不到任何路由時,重定向到默認的路由,加載對應的組件即可。 ``` {/* 總覽頁 */} <Route path='/home' exact component={Index} /> {/* 執法辦案 */} <Route path='/lawEnfo' exact component={LawEnforcement} /> <Redirect to='/home' /> ```
                  <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>

                              哎呀哎呀视频在线观看