Compare commits

..

No commits in common. "6eaaf28dae4c96e48c8dfc287afc03ebe00170fc" and "b714df5f43004fe57ffae31b4b6fb6ca79404680" have entirely different histories.

10 changed files with 13 additions and 20 deletions

View File

@ -1,3 +1,3 @@
# 开发环境接口 # 开发环境接口
# VITE_API_BASE_URL='http://localhost:8000' # VITE_API_BASE_URL=http://localhost:8000
VITE_API_BASE_URL='https://backend.yunzer.cn' 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; font-size: 1rem;
line-height: 1.5; // 舒适行高 line-height: 1.5; // 舒适行高
color: #333; // 基础文本色 color: #333; // 基础文本色
// background-color: #fff; // 基础背景色 background-color: #fff; // 基础背景色
-webkit-text-size-adjust: 100%; // 防止iOS横屏字体放大 -webkit-text-size-adjust: 100%; // 防止iOS横屏字体放大
height: 100%; height: 100%;
width: 100%; width: 100%;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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