diff --git a/src/pages/my/signature.vue b/src/pages/my/signature.vue index 4465399..0e8d921 100644 --- a/src/pages/my/signature.vue +++ b/src/pages/my/signature.vue @@ -29,7 +29,7 @@ import { baseURL } from '@/utils/http' let isCanvas = ref(false) let imgPath = ref('') let isRotate = ref(false) -let actionUrl = `/file/upload` +let actionUrl = `${baseURL}/file/upload` let signType = ref(0) const opts = reactive({}) @@ -130,7 +130,7 @@ const handlePhoto = () => { // 上传 const uploadImg = (path) => { uni.uploadFile({ - url: '/file/upload', + url: actionUrl, filePath: path, name: 'file', header: { diff --git a/src/utils/http.js b/src/utils/http.js index 5d22f13..d4937e6 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -8,7 +8,7 @@ import { useMemberStore } from '@/stores' const ENV = process.env.NODE_ENV // export const baseURL = ENV === 'development' ? 'http://192.168.0.244:18580' : 'http://192.168.0.244:18580'//测试 // export const baseURL = ENV === 'development' ? 'http://sgwpdm.ah.sgcc.com.cn/iws/jiju-api/' : 'http://sgwpdm.ah.sgcc.com.cn/iws/jiju-api/'//生产 -export const baseURL = ENV === 'development' ? '/api' : '/iws/jiju-api'; // 宏源服务 +export const baseURL = ENV === 'development' ? 'http://192.168.1.117:18080' : '/iws/jiju-api'; // 宏源服务 // export const baseURL = ENV === 'development' ? 'http://192.168.0.234:18080' : '***' // export const baseURL = ENV === 'development' ? 'http://192.168.0.96:18080' : 'http://192.168.2.27:18080'//马 // export const baseURL = ENV === 'development' ? '/api' : '***'