@@ -23,7 +23,7 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
})
)
app.listen(port, function () {
- console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
+ console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`),'=======')
if (report) {
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
}
@@ -57,5 +57,5 @@ export const dataType = [
{ name: 'integer', needQuotation: false, availableFunc: ['sum', 'avg', 'max', 'min', 'count', 'none', 'custbiaozhun', 'custbianyi'] }
]
-export const SERVER_URL = '127.0.0.1:8081';
+export const SERVER_URL = 'http://127.0.0.1:8081';
// export const SERVER_URL = 'http://192.168.1.70:8081/';
@@ -8,15 +8,12 @@ import { SERVER_URL } from '@/utils/configs'
// var aa = process.env.VUE_APP_BASE_API
var aa = SERVER_URL
-console.log(SERVER_URL,'===')
-console.log(process.env.VUE_APP_BASE_API1)
-console.log(process.env.VUE_APP_BASE_API2)
-console.log(process.env.VUE_APP_BASE_API3)
-console.log(process.env.VUE_APP_BASE_API4)
+// console.log(SERVER_URL,'===')
//获取当前url
-if(aa.indexOf('/')==0 && aa.length==1){
- aa= window.location.protocol + "//"+window.location.host+aa
-}
+// if(aa.indexOf('/')==0 && aa.length==1){
+// // aa= window.location.protocol + "//"+window.location.host+aa
+// aa= window.location.protocol + "//"+window.location.host+aa
+// }
const service = axios.create({
baseURL: aa, // url = base url + request url
withCredentials: true, // send cookies when cross-domain requests