fix: 更新生产环境API地址并调整富文本编辑器权限控制

更新.env.production中的API地址为正式域名
在富文本编辑器中添加管理员权限检查,隐藏非管理员的操作按钮
This commit is contained in:
34701892@qq.com 2025-09-03 21:23:28 +08:00
parent c14d52ec9a
commit 2257392176
2 changed files with 7 additions and 7 deletions

View File

@ -2,9 +2,9 @@
ENV = production
# 线上环境接口地址
# VITE_API_URL = https://cankao.cs.com.cn/admin
VITE_API_URL = http://123.60.153.169:8040/admin
VITE_API_URL = https://cankao.cs.com.cn/admin
# VITE_API_URL = http://123.60.153.169:8040/admin
#H5的域名目前是给列表里的复制用
# VITE_API_URL_H5 = https://cankao.cs.com.cn
VITE_API_URL_H5 = http://123.60.153.169:8040
VITE_API_URL_H5 = https://cankao.cs.com.cn
# VITE_API_URL_H5 = http://123.60.153.169:8040

View File

@ -108,11 +108,11 @@
</el-table-column>
<el-table-column align="center" width="120" prop="submitter" label="编辑人">
<!-- <el-table-column align="center" width="120" prop="submitter" label="编辑人">
<template v-slot="scope">
{{ scope.row.submitter ? scope.row.submitter : '-' }}
</template>
</el-table-column>
</el-table-column> -->
<el-table-column align="center" width="120">
<template #header>
<el-dropdown trigger="click" @command="handleCommandRating">
@ -192,7 +192,7 @@
</el-icon> -->
</div>
<!-- v-if="isAdmin" -->
<el-icon size="16" @click="goRecord(scope.row)" style="margin-left: 10px">
<el-icon v-if="isAdmin" size="16" @click="goRecord(scope.row)" style="margin-left: 10px">
<Tickets />
</el-icon>
</div>