<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國際加速解決方案。 廣告
                [toc] ### 一、在vue.config.js中配置跨域 ``` // before: require('./mock/mock-server.js') proxy : { [process.env.VUE_APP_BASE_API] : { target : "http://ceshi8.dishaxy.com", ws:true, changeOrigin : true, pathRewrite : { ["^" + process.env.VUE_APP_BASE_API] : "" } } } ``` ### 二、實現登錄功能 2.1 配置登錄api接口 ``` export function login(data) { return request({ url: '/user/login', method: 'post', data }) } ``` 2.2 刪除默認的用戶名和密碼 2.3 刪除默認的表單驗證 ``` export default { name: 'Login', components: { SocialSign }, data() { // const validateUsername = (rule, value, callback) => { // if (!validUsername(value)) { // callback(new Error('Please enter the correct user name')) // } else { // callback() // } // } // const validatePassword = (rule, value, callback) => { // if (value.length < 6) { // callback(new Error('The password can not be less than 6 digits')) // } else { // callback() // } // } return { loginForm: { username: '', password: '' }, loginRules: { username: [{ required: true, trigger: 'blur', }], password: [{ required: true, trigger: 'blur', }] }, passwordType: 'password', capsTooltip: false, loading: false, showDialog: false, redirect: undefined, otherQuery: {} } }, ``` ### 三、配置用戶信息接口 ``` export function getInfo(token) { return request({ url: '/admin/user/info', method: 'get', params: { token } }) } ``` ### 四、解決錯誤提示問題 ``` // request.js error => { console.log('err' + error) // for debug Message({ message: error.response.data.data, type: 'error', duration: 5 * 1000 }) return Promise.reject(error) } ```
                  <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>

                              哎呀哎呀视频在线观看