解决https不能ajaxhttp 加入gzip打包
This commit is contained in:
parent
313d1c5456
commit
58ab7a3f18
|
@ -52,7 +52,7 @@ module.exports = configure(function (/* ctx */) {
|
||||||
browser: ['es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1'],
|
browser: ['es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1'],
|
||||||
node: 'node16',
|
node: 'node16',
|
||||||
},
|
},
|
||||||
|
gzip: true,
|
||||||
vueRouterMode: 'history', // available values: 'hash', 'history'
|
vueRouterMode: 'history', // available values: 'hash', 'history'
|
||||||
// vueRouterBase,
|
// vueRouterBase,
|
||||||
// vueDevtools,
|
// vueDevtools,
|
||||||
|
@ -92,7 +92,7 @@ module.exports = configure(function (/* ctx */) {
|
||||||
},
|
},
|
||||||
|
|
||||||
// iconSet: 'material-icons', // Quasar icon set
|
// iconSet: 'material-icons', // Quasar icon set
|
||||||
// lang: 'en-US', // Quasar language pack
|
lang: 'zh-CN', // Quasar language pack
|
||||||
|
|
||||||
// For special cases outside of where the auto-import strategy can have an impact
|
// For special cases outside of where the auto-import strategy can have an impact
|
||||||
// (like functional components as one of the examples),
|
// (like functional components as one of the examples),
|
||||||
|
|
|
@ -4,7 +4,7 @@ class getdata {
|
||||||
return await api.get('https://api.shagain.club/api.php?type=list');
|
return await api.get('https://api.shagain.club/api.php?type=list');
|
||||||
}
|
}
|
||||||
async text_server(url: string) {
|
async text_server(url: string) {
|
||||||
return await api.post('http://149.129.107.38:1323/textserver', { url });
|
return await api.post('https://api.shagain.club/textserver', { url });
|
||||||
}
|
}
|
||||||
async get_country(ip: string) {
|
async get_country(ip: string) {
|
||||||
return await api.get(`https://ip.useragentinfo.com/json?ip=${ip}`);
|
return await api.get(`https://ip.useragentinfo.com/json?ip=${ip}`);
|
||||||
|
|
Loading…
Reference in New Issue