智慧农业大数据平台
guoshilong
2022-08-31 d8ac1b73685082f573edb85c7e41c10667327075
修改接口地址
3 files modified
10 ■■■■■ changed files
src/api/land/land.js 2 ●●● patch | view | raw | blame | history
src/router/axios.js 6 ●●●●● patch | view | raw | blame | history
src/views/login/index.vue 2 ●●● patch | view | raw | blame | history
src/api/land/land.js
@@ -50,7 +50,7 @@
export const getLandList = (userid, farmId) => {
    return request({
        url: 'http://182.106.212.58:8013/api/land/land/getLandList',
        url: 'http://dev.jxpskj.com:8020/api/land/land/getLandList',
        method: 'get',
        params: {
            userid,
src/router/axios.js
@@ -19,10 +19,8 @@
import * as auth from '@/utils/auth'
const service = axios.create({
    baseURL: 'http://182.106.212.58:8013/api', // 2
    // baseURL: 'http://localhost:89', // 2
    // baseURL: 'http://192.168.0.207:89', // 2
    // baseURL: 'http://192.168.0.207:89', // 2
    baseURL: 'http://dev.jxpskj.com:8020/api', // 2
    // baseURL:'http://127.0.0.1:89',
    timeout: 600000 // request timeout
})
src/views/login/index.vue
@@ -79,7 +79,7 @@
        var that = this
        this.newAxios = axios.create({
            baseURL: 'http://182.106.212.58:8013/api',
            baseURL: 'http://dev.jxpskj.com:8020/api',
            timeout: 600000,
            headers: {
                Authorization: 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',