Commit 02d6fe88 authored by caimeng's avatar caimeng

修改上传的路径地址,根据环境变量

parent d41468b3
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
**/ **/
const config = { const config = {
title:'贷超管理后台', title:'贷超管理后台',
layout: 'gallery', layout: 'vertical',
templateFolder: 'project', templateFolder: 'project',
authentication: 'intelligence', // all , intelligence authentication: 'intelligence', // all , intelligence
} }
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
> >
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="/api/sysUser/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleSuccessBusiness" :on-success="handleSuccessBusiness"
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
<script> <script>
import BlockHeader from "@/components/blockHeader"; import BlockHeader from "@/components/blockHeader";
import API from "@/server/api"; import API from "@/server/api";
const $API = process.env.VUE_APP_API_PATH;
export default { export default {
name: "MerchantNew", name: "MerchantNew",
components: { components: {
...@@ -166,6 +166,7 @@ export default { ...@@ -166,6 +166,7 @@ export default {
}, },
data() { data() {
return { return {
uploadUrl:`${$API}/sysUser/upload`,
data: null, data: null,
dialogVisible: false, dialogVisible: false,
form: {}, form: {},
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
> >
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="/api/sysUser/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleSuccessBusiness" :on-success="handleSuccessBusiness"
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
> >
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="/api/sysUser/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleSuccessLoan" :on-success="handleSuccessLoan"
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
> >
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="/api/sysUser/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleSuccessOffice" :on-success="handleSuccessOffice"
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
<script> <script>
import BlockHeader from "@/components/blockHeader"; import BlockHeader from "@/components/blockHeader";
import API from "@/server/api"; import API from "@/server/api";
const $API = process.env.VUE_APP_API_PATH;
export default { export default {
name: "MerchantNew", name: "MerchantNew",
components: { components: {
...@@ -156,6 +156,7 @@ export default { ...@@ -156,6 +156,7 @@ export default {
}, },
data() { data() {
return { return {
uploadUrl:`${$API}/sysUser/upload`,
tenantNo: "", tenantNo: "",
form: { form: {
tenantFullName: "", tenantFullName: "",
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
> >
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="/api/sysUser/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleSuccessLogo" :on-success="handleSuccessLogo"
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
<script> <script>
import BlockHeader from "@/components/blockHeader"; import BlockHeader from "@/components/blockHeader";
import API from "@/server/api"; import API from "@/server/api";
const $API = process.env.VUE_APP_API_PATH;
export default { export default {
name: "MerchantNew", name: "MerchantNew",
...@@ -93,6 +94,7 @@ export default { ...@@ -93,6 +94,7 @@ export default {
}, },
data() { data() {
return { return {
uploadUrl:`${$API}/sysUser/upload`,
form: { form: {
znxTitle: "mc公告标题", znxTitle: "mc公告标题",
znxTitleUrl: "", znxTitleUrl: "",
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
> >
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="/api/sysUser/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleSuccessLogo" :on-success="handleSuccessLogo"
...@@ -312,6 +312,7 @@ ...@@ -312,6 +312,7 @@
<script> <script>
import BlockHeader from "@/components/blockHeader"; import BlockHeader from "@/components/blockHeader";
import API from "@/server/api"; import API from "@/server/api";
const $API = process.env.VUE_APP_API_PATH;
export default { export default {
name: "MerchantNew", name: "MerchantNew",
...@@ -320,6 +321,7 @@ export default { ...@@ -320,6 +321,7 @@ export default {
}, },
data() { data() {
return { return {
uploadUrl:`${$API}/sysUser/upload`,
appNo:'', appNo:'',
form: { form: {
tenantNo: "", tenantNo: "",
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
> >
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="/api/sysUser/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleSuccessLogo" :on-success="handleSuccessLogo"
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
<script> <script>
import BlockHeader from "@/components/blockHeader"; import BlockHeader from "@/components/blockHeader";
import API from "@/server/api"; import API from "@/server/api";
const $API = process.env.VUE_APP_API_PATH;
export default { export default {
name: "MerchantNew", name: "MerchantNew",
components: { components: {
...@@ -319,6 +319,7 @@ export default { ...@@ -319,6 +319,7 @@ export default {
}, },
data() { data() {
return { return {
uploadUrl:`${$API}/sysUser/upload`,
form: { form: {
tenantNo: "", tenantNo: "",
abutmentWay: "", abutmentWay: "",
......
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 to comment