Commit 02d6fe88 authored by caimeng's avatar caimeng

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

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