调整上传接口地址

This commit is contained in:
Jason
2022-08-17 16:14:05 +08:00
parent 6b8b046ccd
commit 3c625e4712
90 changed files with 71 additions and 80 deletions

View File

@@ -1,4 +1,4 @@
NODE_ENV = 'development'
# Base API
VITE_APP_BASE_URL='https://likeadmin-java-api.yixiangonline.com'
VITE_APP_BASE_URL='https://likeadmin-java.yixiangonline.com'

View File

@@ -77,7 +77,7 @@ export default defineComponent({
setup(props, { emit }) {
const userStore = useUserStore()
const uploadRefs = shallowRef<InstanceType<typeof ElUpload>>()
const action = ref(`${config.baseUrl}${config.urlPrefix}/upload/${props.type}`)
const action = ref(`${config.baseUrl}${config.urlPrefix}/common/upload/${props.type}`)
const headers = computed(() => ({
token: userStore.token,
version: config.version