This commit is contained in:
77
2024-05-05 17:56:13 +08:00
parent 4d11e63c82
commit 6286753772
2 changed files with 7 additions and 3 deletions

View File

@@ -34,7 +34,11 @@
<el-table v-loading="loading" :data="userBannerList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="userBannerList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="轮播" align="center" prop="banner" /> <el-table-column label="轮播" align="center" prop="banner" >
<template v-slot="scope">
<image-preview :src="scope.row.banner" :height="75" :width="120"/>
</template>
</el-table-column>
<el-table-column label="状态" align="center" prop="enableStatus"> <el-table-column label="状态" align="center" prop="enableStatus">
<template v-slot="scope"> <template v-slot="scope">
<cai-dict-tag :options="enableStatusList" :value="scope.row.enableStatus"/> <cai-dict-tag :options="enableStatusList" :value="scope.row.enableStatus"/>

View File

@@ -35,8 +35,8 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://localhost:8080`, target: `http://localhost:8080`,
target: `http://xq-admin.mubai8888.com/prod-api`, // target: `http://xq-admin.mubai8888.com/prod-api`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''