Compare commits

...

2 Commits

Author SHA1 Message Date
6eaaf28dae 更新主题样式 2026-01-28 23:13:58 +08:00
0eb6d94160 更新跨域 2026-01-28 23:01:25 +08:00
10 changed files with 20 additions and 13 deletions

View File

@ -1,3 +1,3 @@
# 开发环境接口
# VITE_API_BASE_URL=http://localhost:8000
VITE_API_BASE_URL=https://backend.yunzer.cn
# VITE_API_BASE_URL='http://localhost:8000'
VITE_API_BASE_URL='https://backend.yunzer.cn'

View File

@ -1,2 +1,2 @@
# 生产环境接口
VITE_API_BASE_URL=https://backend.yunzer.cn
VITE_API_BASE_URL='https://backend.yunzer.cn'

View File

@ -24,7 +24,7 @@ body {
font-size: 1rem;
line-height: 1.5; // 舒适行高
color: #333; // 基础文本色
background-color: #fff; // 基础背景色
// background-color: #fff; // 基础背景色
-webkit-text-size-adjust: 100%; // 防止iOS横屏字体放大
height: 100%;
width: 100%;

View File

@ -5,22 +5,24 @@
// body 样式
body {
background-color: #f5f7fa;
// background-color: #f5f7fa;
color: #303133;
transition: background-color 0.3s ease, color 0.3s ease;
}
// container-box 样式
.container-box {
background-color: #ffffff;
border: 1px solid #ebeef5;
// background-color: #ffffff;
// border: 1px solid #ebeef5;
padding: 24px;
background-color: var(--el-bg-color);
border: 1px solid var(--el-border-color-lighter);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
border-radius: 8px;
padding: 24px;
transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.header-bar {
display: flex;
align-items: center;

View File

@ -190,7 +190,6 @@ onUnmounted(() => {
<style scoped lang="scss">
.content-stats-container {
padding: 24px;
min-height: 100vh;
.stat-cards {

View File

@ -175,7 +175,6 @@ onMounted(() => {
<style lang="scss" scoped>
.category-manager {
padding: 24px;
min-height: 100vh;
//

View File

@ -633,6 +633,8 @@ onMounted(async () => {
<style lang="scss" scoped>
.cms-articles {
padding: 20px;
border-radius: 8px;
border: 1px solid var(--el-border-color-lighter);
height: 100%;
background: var(--el-bg-color);

View File

@ -224,7 +224,7 @@ const fetchMenus = async () => {
} as Menu,
];
} else {
ElMessage.error("获取前端导航失败: " + result.message);
ElMessage.error("获取前端导航失败: " + result.msg);
}
} catch (error) {
ElMessage.error("获取前端导航数据失败: " + (error as Error).message);
@ -359,7 +359,7 @@ const handleDeleteMenu = (menu: Menu) => {
ElMessage.success("删除成功");
fetchMenus();
} else {
ElMessage.error("删除失败: " + result.message);
ElMessage.error("删除失败: " + result.msg);
}
} catch (error) {
ElMessage.error("删除失败: " + (error as Error).message);

View File

@ -261,6 +261,11 @@ onMounted(() => {
</script>
<style lang="less" scoped>
.container-box {
padding: 24px;
background-color: var(--el-bg-color);
border: 1px solid var(--el-border-color-lighter);
}
.header-bar {
display: flex;
justify-content: space-between;

View File

@ -146,7 +146,7 @@ const fetchLogDetail = async (logId?: number) => {
const res = await getOperationLogDetail(targetId);
if (res.code === 200) {
log.value = res.data;
console.log(log.value);
// console.log(log.value);
} else {
console.error("获取日志详情失败:", res?.msg || "未知错误");
log.value = null;