no message
This commit is contained in:
parent
82dd3ebb0b
commit
2f368e631a
@ -2,7 +2,7 @@ import http from "@/utils/request"
|
|||||||
export default {
|
export default {
|
||||||
token: {
|
token: {
|
||||||
post: async function(data = {}) {
|
post: async function(data = {}) {
|
||||||
return await http.post('/api/login', data);
|
return await http.post('/login', data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,14 +1,14 @@
|
|||||||
import http from "@/utils/request"
|
import http from "@/utils/request"
|
||||||
export default {
|
export default {
|
||||||
upload: {
|
upload: {
|
||||||
url: '/app/upload',
|
url: '/upload',
|
||||||
post: async function(data, config = {}) {
|
post: async function(data, config = {}) {
|
||||||
return await http.post(this.url, data, config);
|
return await http.post(this.url, data, config);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
uploadFile: {
|
uploadFile: {
|
||||||
post: async function(data, config = {}) {
|
post: async function(data, config = {}) {
|
||||||
return await http.post('/app/upload?type=file', data, config);
|
return await http.post('/upload?type=file', data, config);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
@ -7,15 +7,15 @@ export default {
|
|||||||
},
|
},
|
||||||
table: {
|
table: {
|
||||||
get: async function(name = '') {
|
get: async function(name = '') {
|
||||||
return await http.get('/system/table/get', {
|
return await http.get('/table/get', {
|
||||||
name
|
name
|
||||||
}, {cache:true});
|
}, {cache:true});
|
||||||
},
|
},
|
||||||
getUpdate: async function(name = '', data=[]) {
|
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=[]) {
|
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});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
@ -12,7 +12,7 @@ const DEFAULT_CONFIG = {
|
|||||||
CORE_VER: "1.6.9",
|
CORE_VER: "1.6.9",
|
||||||
|
|
||||||
//接口地址
|
//接口地址
|
||||||
API_URL: 'https://app.gter.net/admin',
|
API_URL: 'http://localhost/admin',
|
||||||
|
|
||||||
//请求超时
|
//请求超时
|
||||||
TIMEOUT: 10000,
|
TIMEOUT: 10000,
|
||||||
@ -24,10 +24,10 @@ const DEFAULT_CONFIG = {
|
|||||||
THEMEHEADER: true,
|
THEMEHEADER: true,
|
||||||
|
|
||||||
//TokenName
|
//TokenName
|
||||||
TOKEN_NAME: "Authorization",
|
TOKEN_NAME: "token",
|
||||||
|
|
||||||
// Cookie Name
|
// Cookie Name
|
||||||
SESSIONNAME: "X-PHPSSESSION",
|
SESSIONNAME: "MIUCMSSESSION",
|
||||||
|
|
||||||
//Token前缀,注意最后有个空格,如不需要需设置空字符串
|
//Token前缀,注意最后有个空格,如不需要需设置空字符串
|
||||||
TOKEN_PREFIX: "",
|
TOKEN_PREFIX: "",
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
|
|
||||||
|
|
||||||
setTimeout(async ()=>{
|
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){
|
if(res.code==201){
|
||||||
@ -185,7 +185,7 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
async wechatLogin(){
|
async wechatLogin(){
|
||||||
var res = await this.$http.get('api/login/wechatQrcode');
|
var res = await this.$http.get('login/wechatQrcode');
|
||||||
if (res.code==200) {
|
if (res.code==200) {
|
||||||
this.showWechatLogin = true
|
this.showWechatLogin = true
|
||||||
this.WechatLoginCode = res.data.qrcodeurl
|
this.WechatLoginCode = res.data.qrcodeurl
|
||||||
|
Loading…
Reference in New Issue
Block a user