Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
small-program-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
24171500
authored
Jul 11, 2019
by
duanguohui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
正式环境 图片上传
parent
e7f9bdd4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
src/http/help.js
+2
-1
src/main.js
+2
-0
src/views/banner/bannerAdd.vue
+1
-1
src/views/cookManage/CookAdd.vue
+1
-1
No files found.
src/http/help.js
View file @
24171500
...
@@ -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
)
{
...
...
src/main.js
View file @
24171500
...
@@ -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
)
...
...
src/views/banner/bannerAdd.vue
View file @
24171500
...
@@ -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"
>
>
...
...
src/views/cookManage/CookAdd.vue
View file @
24171500
...
@@ -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"
>
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment