修改查询商品接口
parent
203718afa5
commit
1e3c14c2a2
|
|
@ -103,7 +103,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async searchGoods() {
|
async searchGoods() {
|
||||||
const resDate = await this.$api.get(`/v1/product/products`, {
|
const resDate = await this.$api.get(`/v1/store/${this.id}/products`, {
|
||||||
params: {
|
params: {
|
||||||
keyword: this.keyword
|
keyword: this.keyword
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ module.exports = {
|
||||||
devServer: {
|
devServer: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://test.zichunsheng.cn/api',
|
target: 'https://jiqu.zichunsheng.cn/api',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/api': ''
|
'^/api': ''
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue