Commit 7bc0315e by zhuoym

调整上传地址为配置

parent cd22db79
Showing with 3 additions and 2 deletions
......@@ -97,7 +97,7 @@
</div>
<Upload v-if="!uploadList.length || uploadList.length < 1" ref="upload" :show-upload-list="false"
:on-success="handleSuccess" :format="['jpg', 'png']" :max-size="2048" type="drag"
:action=`${axios.defaults.baseURL}/api/file/uploadIcon` :before-upload="handleBeforeUpload"
:action="uploadUrl" :before-upload="handleBeforeUpload"
style="display: inline-block;width:58px;">
<div style="width: 58px;height:58px;line-height: 58px;">
<Icon type="ios-plus-empty" size="20"></Icon>
......@@ -172,7 +172,7 @@
</div>
<Upload v-if="!uploadList.length || uploadList.length < 1" ref="upload" :show-upload-list="false"
:on-success="handleSuccess" :format="['jpg', 'png']" :max-size="2048" type="drag"
:action=`${axios.defaults.baseURL}//api/file/uploadIcon` :before-upload="handleBeforeUpload"
:action="uploadUrl" :before-upload="handleBeforeUpload"
style="display: inline-block;width:58px;">
<div style="width: 58px;height:58px;line-height: 58px;">
<Icon type="ios-plus-empty" size="20"></Icon>
......@@ -203,6 +203,7 @@ import qs from "qs";
export default {
data () {
return {
uploadUrl: `${axios.defaults.baseURL}/api/file/uploadIcon`,
seriesImage: '',
uploadList: [],
visible: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment