diff --git a/src/pageB/select_product/index.vue b/src/pageB/select_product/index.vue index 98af9af..c1ecbe3 100644 --- a/src/pageB/select_product/index.vue +++ b/src/pageB/select_product/index.vue @@ -103,7 +103,7 @@ }, methods: { async searchGoods() { - const resDate = await this.$api.get(`/v1/product/products`, { + const resDate = await this.$api.get(`/v1/store/${this.id}/products`, { params: { keyword: this.keyword } diff --git a/vue.config.js b/vue.config.js index eb37ffe..33bb753 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,7 +3,7 @@ module.exports = { devServer: { proxy: { '/api': { - target: 'http://test.zichunsheng.cn/api', + target: 'https://jiqu.zichunsheng.cn/api', changeOrigin: true, pathRewrite: { '^/api': ''