This commit is contained in:
parent
3376633198
commit
3bf083b967
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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' : '***'
|
||||
|
|
|
|||
Loading…
Reference in New Issue