Commit 6ff901e6 by wang

update

parent 9b63de7f
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=/favicon.ico><title>Vue Element Admin</title><link href=/static/css/chunk-libs.5cf311f0.css rel=stylesheet><link href=/static/css/app.850c09c7.css rel=stylesheet></head><body><div id=app></div><script src=/static/js/chunk-elementUI.e18388bc.js></script><script src=/static/js/chunk-libs.a49098e1.js></script><script>(function(e){function t(t){for(var r,u,a=t[0],i=t[1],f=t[2],d=0,l=[];d<a.length;d++)u=a[d],o[u]&&l.push(o[u][0]),o[u]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);s&&s(t);while(l.length)l.shift()();return c.push.apply(c,f||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,u=1;u<n.length;u++){var a=n[u];0!==o[a]&&(r=!1)}r&&(c.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},u={runtime:0},o={runtime:0},c=[];function a(e){return i.p+"static/js/"+({}[e]||e)+"."+{"chunk-0575145a":"59e0ff0b","chunk-05a99c67":"be1a1e89","chunk-19593038":"e94b4705","chunk-2d2105d3":"7106a610","chunk-2d230fe7":"446e67d8","chunk-667d2d85":"2d4f045d","chunk-91584750":"7dfdef5c","chunk-bf0cb8b0":"7e5e9a4e"}[e]+".js"}function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-0575145a":1,"chunk-05a99c67":1,"chunk-19593038":1,"chunk-667d2d85":1,"chunk-91584750":1,"chunk-bf0cb8b0":1};u[e]?t.push(u[e]):0!==u[e]&&n[e]&&t.push(u[e]=new Promise((function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-0575145a":"40f76b5c","chunk-05a99c67":"d0296c60","chunk-19593038":"40f76b5c","chunk-2d2105d3":"31d6cfe0","chunk-2d230fe7":"31d6cfe0","chunk-667d2d85":"d1c64e6f","chunk-91584750":"b043920c","chunk-bf0cb8b0":"40f76b5c"}[e]+".css",o=i.p+r,c=document.getElementsByTagName("link"),a=0;a<c.length;a++){var f=c[a],d=f.getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(d===r||d===o))return t()}var l=document.getElementsByTagName("style");for(a=0;a<l.length;a++){f=l[a],d=f.getAttribute("data-href");if(d===r||d===o)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var r=t&&t.target&&t.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");c.request=r,delete u[e],s.parentNode.removeChild(s),n(c)},s.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(s)})).then((function(){u[e]=0})));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var c=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=c);var f,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=a(e),f=function(t){d.onerror=d.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src,c=new Error("Loading chunk "+e+" failed.\n("+r+": "+u+")");c.type=r,c.request=u,n[1](c)}o[e]=void 0}};var l=setTimeout((function(){f({type:"timeout",target:d})}),12e4);d.onerror=d.onload=f,document.head.appendChild(d)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var f=window["webpackJsonp"]=window["webpackJsonp"]||[],d=f.push.bind(f);f.push=t,f=f.slice();for(var l=0;l<f.length;l++)t(f[l]);var s=d;n()})([]);</script><script src=/static/js/app.91a242d8.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=/favicon.ico><title>Vue Element Admin</title><link href=/static/css/chunk-libs.5cf311f0.css rel=stylesheet><link href=/static/css/app.1b85534f.css rel=stylesheet></head><body><div id=app></div><script src=/static/js/chunk-elementUI.e18388bc.js></script><script src=/static/js/chunk-libs.a49098e1.js></script><script>(function(e){function t(t){for(var r,u,a=t[0],i=t[1],f=t[2],d=0,l=[];d<a.length;d++)u=a[d],c[u]&&l.push(c[u][0]),c[u]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);h&&h(t);while(l.length)l.shift()();return o.push.apply(o,f||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,u=1;u<n.length;u++){var a=n[u];0!==c[a]&&(r=!1)}r&&(o.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},u={runtime:0},c={runtime:0},o=[];function a(e){return i.p+"static/js/"+({}[e]||e)+"."+{"chunk-0575145a":"59e0ff0b","chunk-05a99c67":"be1a1e89","chunk-19593038":"e94b4705","chunk-2162b876":"a2c48de9","chunk-2d2105d3":"7106a610","chunk-2d230fe7":"446e67d8","chunk-556562e8":"04d70197","chunk-667d2d85":"2d4f045d","chunk-bf0cb8b0":"7e5e9a4e"}[e]+".js"}function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-0575145a":1,"chunk-05a99c67":1,"chunk-19593038":1,"chunk-2162b876":1,"chunk-556562e8":1,"chunk-667d2d85":1,"chunk-bf0cb8b0":1};u[e]?t.push(u[e]):0!==u[e]&&n[e]&&t.push(u[e]=new Promise((function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-0575145a":"40f76b5c","chunk-05a99c67":"d0296c60","chunk-19593038":"40f76b5c","chunk-2162b876":"40f76b5c","chunk-2d2105d3":"31d6cfe0","chunk-2d230fe7":"31d6cfe0","chunk-556562e8":"b043920c","chunk-667d2d85":"d1c64e6f","chunk-bf0cb8b0":"40f76b5c"}[e]+".css",c=i.p+r,o=document.getElementsByTagName("link"),a=0;a<o.length;a++){var f=o[a],d=f.getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(d===r||d===c))return t()}var l=document.getElementsByTagName("style");for(a=0;a<l.length;a++){f=l[a],d=f.getAttribute("data-href");if(d===r||d===c)return t()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=t,h.onerror=function(t){var r=t&&t.target&&t.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.request=r,delete u[e],h.parentNode.removeChild(h),n(o)},h.href=c;var s=document.getElementsByTagName("head")[0];s.appendChild(h)})).then((function(){u[e]=0})));var r=c[e];if(0!==r)if(r)t.push(r[2]);else{var o=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=o);var f,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=a(e),f=function(t){d.onerror=d.onload=null,clearTimeout(l);var n=c[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src,o=new Error("Loading chunk "+e+" failed.\n("+r+": "+u+")");o.type=r,o.request=u,n[1](o)}c[e]=void 0}};var l=setTimeout((function(){f({type:"timeout",target:d})}),12e4);d.onerror=d.onload=f,document.head.appendChild(d)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var f=window["webpackJsonp"]=window["webpackJsonp"]||[],d=f.push.bind(f);f.push=t,f=f.slice();for(var l=0;l<f.length;l++)t(f[l]);var h=d;n()})([]);</script><script src=/static/js/app.c13168f3.js></script></body></html>
\ No newline at end of file \ No newline at end of file
.pagination-container[data-v-6af373ef]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-6af373ef]{display:none}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-91584750"],{"1db4":function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),t._v(" "),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},c=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved\n "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(a("35e7"),a("2877")),r=Object(n["a"])(l,e,c,!1,null,"26fcd89f",null);s["default"]=r.exports},"26fc":function(t,s,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"35e7":function(t,s,a){"use strict";var e=a("c107"),c=a.n(e);c.a},a36b:function(t,s,a){t.exports=a.p+"static/img/404.a57b6f31.png"},c107:function(t,s,a){}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-556562e8"],{"1db4":function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),t._v(" "),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},c=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved\n "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(a("35e7"),a("2877")),r=Object(n["a"])(l,e,c,!1,null,"26fcd89f",null);s["default"]=r.exports},"26fc":function(t,s,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"35e7":function(t,s,a){"use strict";var e=a("c107"),c=a.n(e);c.a},a36b:function(t,s,a){t.exports=a.p+"static/img/404.a57b6f31.png"},c107:function(t,s,a){}}]);
\ No newline at end of file \ No newline at end of file
import request from '@/utils/request'
import { getToken } from '@/utils/auth'
export function getGoodList(params) {
params.token = getToken()
return request({
url: 'jingdong/good-list',
method: 'get',
params
})
}
export function getCateList(params) {
params.token = getToken()
return request({
url: 'jingdong/cate-list',
method: 'get',
params
})
}
export function importUrl(params) {
params.token = getToken()
return request({
url: 'jingdong/import-good',
method: 'post',
params
})
}
export function deleteGood(params) {
params.token = getToken()
return request({
url: 'jingdong/' + params.id + '/delete-good',
method: 'delete',
params
})
}
...@@ -8,6 +8,7 @@ import Layout from '@/layout' ...@@ -8,6 +8,7 @@ import Layout from '@/layout'
/* Router Modules */ /* Router Modules */
import accountsRouter from './modules/accounts' import accountsRouter from './modules/accounts'
import goodsRouter from "./modules/goods";
/** /**
* Note: sub-menu only appear when route children.length >= 1 * Note: sub-menu only appear when route children.length >= 1
...@@ -70,7 +71,7 @@ export const constantRoutes = [ ...@@ -70,7 +71,7 @@ export const constantRoutes = [
{ {
path: '/', path: '/',
component: Layout, component: Layout,
redirect: '/accounts/index' redirect: '/goods/index'
} }
] ]
...@@ -80,7 +81,8 @@ export const constantRoutes = [ ...@@ -80,7 +81,8 @@ export const constantRoutes = [
*/ */
export const asyncRoutes = [ export const asyncRoutes = [
/** when your routing map is too long, you can split it into small modules **/ /** when your routing map is too long, you can split it into small modules **/
accountsRouter, //accountsRouter,
goodsRouter,
// 404 page must be placed at the end !!! // 404 page must be placed at the end !!!
{ path: '*', redirect: '/404', hidden: true } { path: '*', redirect: '/404', hidden: true }
] ]
......
/** When your routing table is too long, you can split it into small modules**/
import Layout from '@/layout'
const goodsRouter = {
path: '/goods',
component: Layout,
redirect: '/goods/index1',
name: 'Goods',
meta: {
title: '京东商品',
icon: 'shopping'
},
alwaysShow: true,
children: [
{
path: 'index',
name: '商品列表',
component: () => import('@/views/goods/index'),
meta: { title: '商品列表', icon: 'shopping' }
},
]
}
export default goodsRouter
<template>
<div class="app-container">
<div class="filter-container">
<el-input v-model="listQuery.goods_name" placeholder="商品名称" style="width: 200px;" class="filter-item" @keyup.enter.native="handleFilter" />
<el-select
v-model="listQuery.cid"
placeholder="请选择分类"
class="width-full filter-item"
filterable
clearable
>
<el-option
v-for="item in cateList"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">
搜索
</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="importUrl">
导入+
</el-button>
</div>
<el-table
v-loading="listLoading"
:data="list"
element-loading-text="Loading"
border
fit
highlight-current-row
>
<el-table-column align="center" label="ID" width="95">
<template slot-scope="scope">
{{ scope.$index }}
</template>
</el-table-column>
<el-table-column label="名称">
<template slot-scope="scope">
{{ scope.row.goods_name }}
</template>
</el-table-column>
<el-table-column label="类别">
<template slot-scope="scope">
{{ scope.row.cid_name }}
</template>
</el-table-column>
<el-table-column label="图片">
<template slot-scope="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.img_url"
fit="fill"
/>
</template>
</el-table-column>
<el-table-column label="商品单价">
<template slot-scope="scope">
{{ scope.row.unit_price }}
</template>
</el-table-column>
<el-table-column label="推广开始日期">
<template slot-scope="scope">
{{ scope.row.start_date }}
</template>
</el-table-column>
<el-table-column label="推广结束日期">
<template slot-scope="scope">
{{ scope.row.end_date }}
</template>
</el-table-column>
<el-table-column label="30天引单数量">
<template slot-scope="scope">
{{ scope.row.in_order_count }}
</template>
</el-table-column>
<el-table-column label="无线佣金比例">
<template slot-scope="scope">
{{ scope.row.commision_ratio_wl }}
</template>
</el-table-column>
<el-table-column label="PC佣金比例">
<template slot-scope="scope">
{{ scope.row.commision_ratio_pc }}
</template>
</el-table-column>
<el-table-column label="推广地址">
<template slot-scope="scope">
<el-button v-clipboard:copy="scope.row.click_url" v-clipboard:success="clipboardSuccess" type="primary" icon="el-icon-document">
复制
</el-button>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="deleteGood(scope.row.id)">
删除
</el-button>
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="fetchData" />
<el-dialog
title="导入链接"
class="el-dialog-medium"
:visible.sync="dialogTableVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<el-form ref="form" :rules="rules" :model="form" label-position="left" label-width="80px">
<el-form-item label="链接地址" prop="text">
<el-input v-model="form.url" placeholder="请输入链接"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogTableVisible = false">取 消</el-button>
<el-button type="primary" @click="saveGood('form')">确 定</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { getGoodList, getCateList, importUrl, deleteGood } from '@/api/goods'
import Pagination from '@/components/Pagination'
import clipboard from '@/directive/clipboard/index.js'
export default {
name: 'Accounts',
directives: {
clipboard
},
components: { Pagination },
filters: {
typeFilter(e_account_role) {
const typeMap = {
EAccountM: '普通企业号',
EAccountS: '认证企业号',
EAccountK: '品牌企业号'
}
return typeMap[e_account_role]
}
},
data() {
return {
dialogTableVisible: false,
list: null,
listLoading: true,
total: 0,
listQuery: {
page: 1,
limit: 15,
goods_name: '',
cid: ''
},
timer: null,
cateList: [],
form: {
url: '',
},
rules: {
url: [{ required: true, message: '链接必须', trigger: 'blur' }]
},
}
},
created() {
this.fetchData()
this.fetchCate()
},
destroyed() {
},
methods: {
deleteGood(id) {
this.$confirm('确定删除视频吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
deleteGood({ id }).then(response => {
this.$message({
message: '操作成功!',
type: 'success'
})
this.fetchData()
})
}).catch(() => {
this.$message({
type: 'error',
message: '取消当前操作'
})
})
},
clipboardSuccess() {
this.$message({
message: '复制成功',
type: 'success',
duration: 1500
})
},
fetchData() {
this.listLoading = true
getGoodList(this.listQuery).then(response => {
this.list = response.data.data
this.total = response.data.meta.total
// Just to simulate the time of the request
setTimeout(() => {
this.listLoading = false
}, 0.5 * 1000)
})
},
fetchCate() {
getCateList({}).then(response => {
this.cateList = response.data.data
})
},
handleFilter() {
this.listQuery.page = 1
this.fetchData()
},
importUrl() {
this.dialogTableVisible = true
},
saveGood(form) {
this.$refs[form].validate((valid) => {
if (valid) {
importUrl(this.form).then(response => {
this.$message({
message: '导入成功!',
type: 'success'
})
this.dialogTableVisible = false
this.fetchData()
})
}
})
}
}
}
</script>
...@@ -38,7 +38,7 @@ module.exports = { ...@@ -38,7 +38,7 @@ module.exports = {
}, },
proxy: { proxy: {
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: 'http://douyin.kaibawang.cn/api', target: 'http://jingdong.kaibawang.cn/api',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''
......
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