提交 fe5541a6 authored 作者: lidongxu's avatar lidongxu

refactor(index): 首页去掉各种图表_不应该在正式环境出现

同上
上级 e44508dc
......@@ -7,6 +7,7 @@ VITE_APP_PROMOTION = '/promotion-api' # 促销
# VITE_APP_BASE_API = '/qllan'
# VITE_APP_BASE_API = '/bclan'
# VITE_APP_BASE_API = '/home'
# VITE_APP_PROMOTION = '/home-promotion-api' # 促销
# 开发环境配置
VITE_APP_ENV = 'development'
......
<template>
<div>
<div class="app-container">
<el-card class="container">
<template #header>
<div class="card-header">
<span>报表列表</span>
</div>
</template>
<div v-for="item in reportList"
class="item">
<el-link icon="Document"
:href="baseURL + item.previewUrl"
target="_blank">{{ item.name }}</el-link>
</div>
</el-card>
</div>
</template>
<script setup>
import { getReportListAPI } from '@/api'
const getReportList = async () => {
const res = await getReportListAPI()
console.log(res)
}
getReportList()
import { getReportListAPI } from '@/api'
const baseURL = ref(import.meta.env.VITE_APP_REPORT_URL + '/report')
const reportList = ref([])
const getReportList = async () => {
const { data } = await getReportListAPI()
reportList.value = data
}
getReportList()
</script>
<style scoped lang="scss">
<style scoped
lang="scss">
.item {
margin: 10px 0;
}
</style>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<div class="container">
<panel-group @handleSetLineChartData="handleSetLineChartData" />
<common-menu />
<el-row :gutter="20"
<!-- <el-row :gutter="20"
class="row">
<el-col :xs="24"
:sm="24"
......@@ -32,7 +32,7 @@
<line-chart class="line-chart"
:chartData="lineChartData" />
</el-col>
</el-row>
</el-row> -->
</div>
</div>
</template>
......
......@@ -43,9 +43,14 @@ export default defineConfig(({ mode, command }) => {
rewrite: (p) => p.replace(/^\/bclan/, '')
},
'/home': {
target: 'http://111.198.15.68:86/api',
target: 'http://111.198.15.68:85/api',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/home/, '')
},
'/home-promotion-api': {
target: 'http://sfa.test.wxl66.cn:85/promotion-api',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/home-promotion-api/, '')
}
}
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论