Procházet zdrojové kódy

2022年5月13日16:55:49

master
wq před 3 roky
rodič
revize
5e06fa9997

+ 1
- 1
.env.development Zobrazit soubor



# .env.development # .env.development
# base api # base api
VITE_APP_BASE_URL = 'http://10.52.0.172:10389/csms/'
VITE_APP_BASE_URL = 'http://10.20.10.206:81/'

+ 1
- 1
.env.production Zobrazit soubor



# .env.production # .env.production
# base api # base api
VITE_APP_BASE_URL = 'http://10.52.0.172:10389/csms/'
VITE_APP_BASE_URL = 'http://10.20.10.206:81/'

+ 2
- 1
src/api/index.ts Zobrazit soubor

headers: { headers: {
"X-Requested-With": "XMLHttpRequest", "X-Requested-With": "XMLHttpRequest",
'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': '*'
'Access-Control-Allow-Headers': 'X-Requested-With,Content-Type',
'Access-Control-Allow-Methods': "PUT,POST,GET,DELETE,OPTIONS"
}, },
// `params` 是即将与请求一起发送的 URL 参数 // `params` 是即将与请求一起发送的 URL 参数
// 必须是一个无格式对象(plain object)或 URLSearchParams 对象 // 必须是一个无格式对象(plain object)或 URLSearchParams 对象

+ 0
- 1
src/views/dengmingcong/cardFillDo/cardFillDo.vue Zobrazit soubor

}: any = getCurrentInstance(); }: any = getCurrentInstance();


proxy.$request.get('api/user', {}, { proxy.$request.get('api/user', {}, {
baseURL: 'http://localhost:8080'
}).then((res: {}) => { }).then((res: {}) => {
console.log(res); console.log(res);
}).catch((err: {}) => { }).catch((err: {}) => {

Načítá se…
Zrušit
Uložit