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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # 1、axios封裝 ``` import axios from 'axios' import { Modal } from 'antd' export default class Axios { static ajax(options) { //定義請求URL的公共部分,即baseURL let baseApi \= 'http://192.168.1.112:7001/' //使用Promise拋出請求的結果, return new Promise((resolve, reject) \=> { //發送axios請求,并傳入options對象,定義請求參數 axios({ //定義url,即接口名稱 url: options.url, //定義請求方式為get method: 'get', //定義baseURL,即請求URL的公共部分 baseURL: baseApi, // 定義超時時間 timeout: 5000, // 定義請求參數 params: (options.data && options.data.params) || '' }).then((response) \=> { // 判斷瀏覽器http返回狀態碼,200表示請求成功 if (response.status \=== 200) { let res \= response.data // 判斷自定義接口狀態碼,0表示業務邏輯成功 if (res.code \=== 0) { // 拋出成功的結果 resolve(res) } else { // 在自定義狀態碼不為0的時候,給出錯誤提示 Modal.info({ title: '提示', content: res.msg }) } } else { // 請求失敗時,拋出的結果 reject(response.data) } }) }) } } ```
                  <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>

                              哎呀哎呀视频在线观看