解决https不能ajaxhttp 加入gzip打包

This commit is contained in:
lingling 2023-03-20 18:17:04 +08:00
parent 313d1c5456
commit 58ab7a3f18
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ module.exports = configure(function (/* ctx */) {
browser: ['es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1'],
node: 'node16',
},
gzip: true,
vueRouterMode: 'history', // available values: 'hash', 'history'
// vueRouterBase,
// vueDevtools,
@ -92,7 +92,7 @@ module.exports = configure(function (/* ctx */) {
},
// 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
// (like functional components as one of the examples),

View File

@ -4,7 +4,7 @@ class getdata {
return await api.get('https://api.shagain.club/api.php?type=list');
}
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) {
return await api.get(`https://ip.useragentinfo.com/json?ip=${ip}`);