Commit 24171500 by duanguohui

正式环境 图片上传

parent e7f9bdd4
...@@ -21,7 +21,8 @@ function getIp () { ...@@ -21,7 +21,8 @@ function getIp () {
axios.defaults.withCredentials = true axios.defaults.withCredentials = true
axios.defaults.timeout = 50000 axios.defaults.timeout = 50000
// axios.defaults.baseURL = 'http://' + getIp() + '/' // axios.defaults.baseURL = 'http://' + getIp() + '/'
axios.defaults.baseURL = 'http://47.94.209.240:8088/' // axios.defaults.baseURL = 'http://47.94.209.240:8088/'
axios.defaults.baseURL = 'https://www.i-sirius.com/api/'
export function get (url) { export function get (url) {
return function (params) { return function (params) {
......
...@@ -12,6 +12,8 @@ import '../src/assets/css/main.less' ...@@ -12,6 +12,8 @@ import '../src/assets/css/main.less'
// axios.defaults.baseURL = 'http://47.94.209.240:8088/' // axios.defaults.baseURL = 'http://47.94.209.240:8088/'
axios.defaults.baseURL = 'https://www.i-sirius.com/api/' axios.defaults.baseURL = 'https://www.i-sirius.com/api/'
Vue.prototype.$ImageUploadUrl = 'https://www.i-sirius.com/api/file/fileUpload'
Vue.prototype.$axios = axios Vue.prototype.$axios = axios
Vue.use(ElementUI) Vue.use(ElementUI)
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<el-form-item label="轮播图:" :rules="{required: true}"> <el-form-item label="轮播图:" :rules="{required: true}">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://47.94.209.240:8088/file/fileUpload" :action="$ImageUploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
> >
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-form-item label="头像:" :rules="{required: true}"> <el-form-item label="头像:" :rules="{required: true}">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="http://47.94.209.240:8088/file/fileUpload" :action="$ImageUploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
> >
......
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