no message

This commit is contained in:
小陌 2023-07-27 18:15:55 +08:00
parent 82dd3ebb0b
commit 2f368e631a
5 changed files with 11 additions and 11 deletions

View File

@ -2,7 +2,7 @@ import http from "@/utils/request"
export default {
token: {
post: async function(data = {}) {
return await http.post('/api/login', data);
return await http.post('/login', data);
}
}
}

View File

@ -1,14 +1,14 @@
import http from "@/utils/request"
export default {
upload: {
url: '/app/upload',
url: '/upload',
post: async function(data, config = {}) {
return await http.post(this.url, data, config);
}
},
uploadFile: {
post: async function(data, config = {}) {
return await http.post('/app/upload?type=file', data, config);
return await http.post('/upload?type=file', data, config);
}
},
}

View File

@ -7,15 +7,15 @@ export default {
},
table: {
get: async function(name = '') {
return await http.get('/system/table/get', {
return await http.get('/table/get', {
name
}, {cache:true});
},
getUpdate: async function(name = '', data=[]) {
return await http.post('/system/table/getUpdate', {name:name}, data);
return await http.post('/table/getUpdate', {name:name}, data);
},
columnSettingSave: async function(name = '', column=[]) {
return await http.post('/system/table/columnSettingSave', {name:name, column:column});
return await http.post('/table/columnSettingSave', {name:name, column:column});
}
},
}

View File

@ -12,7 +12,7 @@ const DEFAULT_CONFIG = {
CORE_VER: "1.6.9",
//接口地址
API_URL: 'https://app.gter.net/admin',
API_URL: 'http://localhost/admin',
//请求超时
TIMEOUT: 10000,
@ -24,10 +24,10 @@ const DEFAULT_CONFIG = {
THEMEHEADER: true,
//TokenName
TOKEN_NAME: "Authorization",
TOKEN_NAME: "token",
// Cookie Name
SESSIONNAME: "X-PHPSSESSION",
SESSIONNAME: "MIUCMSSESSION",
//Token前缀注意最后有个空格如不需要需设置空字符串
TOKEN_PREFIX: "",

View File

@ -132,7 +132,7 @@
setTimeout(async ()=>{
var res = await this.$http.post('api/login/wechatSubmit', {uniqid:this.WechatLoginuniqid});
var res = await this.$http.post('login/wechatSubmit', {uniqid:this.WechatLoginuniqid});
if(res.code==201){
@ -185,7 +185,7 @@
},
async wechatLogin(){
var res = await this.$http.get('api/login/wechatQrcode');
var res = await this.$http.get('login/wechatQrcode');
if (res.code==200) {
this.showWechatLogin = true
this.WechatLoginCode = res.data.qrcodeurl