2.0版本
This commit is contained in:
@@ -11,14 +11,14 @@ import { ElMessage } from 'element-plus';
|
||||
|
||||
// const { stopScript } = usePythonBridge();
|
||||
|
||||
const specialBaseURL = 'http://120.26.251.180:15330'
|
||||
const specialUrlPrefixes = ['chat', 'translation'] // 示例路径前缀
|
||||
const specialBaseURL = 'http://ai.zhukeping.com'
|
||||
const specialUrlPrefixes = ['chat', 'translation', 'translationToChinese'] // 示例路径前缀
|
||||
// 请求地址前缀
|
||||
let baseURL = ''
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// 生产环境
|
||||
// baseURL = "https://api.tkpage.yolozs.com"
|
||||
// baseURL = "http://192.168.1.174:8101"
|
||||
// baseURL = "http://192.168.1.155:8101"
|
||||
baseURL = "http://47.79.98.113:8101"
|
||||
} else {
|
||||
// 测试环境
|
||||
@@ -56,9 +56,9 @@ axios.interceptors.request.use((config) => {
|
||||
|
||||
// 响应拦截器
|
||||
axios.interceptors.response.use((response) => {
|
||||
console.log("response", response.data)
|
||||
// console.log("response", response.data)
|
||||
if (response.data.code == 0 || response.data.code == 200) {
|
||||
console.log("response", response.data.data)
|
||||
// console.log("response", response.data.data)
|
||||
return response.data.data
|
||||
} else if (response.data.code == 40400) {
|
||||
// stopScript();
|
||||
|
||||
Reference in New Issue
Block a user