后台配置文件调整 #2

Merged
root merged 4 commits from zzw-one into master 2024-08-12 10:47:35 +08:00
6 changed files with 7 additions and 4 deletions
Showing only changes of commit 0e8fb6acb4 - Show all commits

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

View File

@ -67,7 +67,7 @@ watch(
to="/" to="/"
> >
<img <img
class="h-[calc(var(--logo-height)-10px)] w-[calc(var(--logo-height)-10px)]" class=" w-[calc(var(--logo-height)-10px)]"
src="@/assets/imgs/logo.png" src="@/assets/imgs/logo.png"
/> />
<div <div

View File

@ -99,7 +99,7 @@
</el-skeleton> </el-skeleton>
</el-card> </el-card>
<!-- <el-card shadow="never" class="mt-8px"> <el-card shadow="never" class="mt-8px">
<el-skeleton :loading="loading" animated> <el-skeleton :loading="loading" animated>
<el-row :gutter="20" justify="space-between"> <el-row :gutter="20" justify="space-between">
<el-col :xl="10" :lg="10" :md="24" :sm="24" :xs="24"> <el-col :xl="10" :lg="10" :md="24" :sm="24" :xs="24">
@ -118,7 +118,7 @@
</el-col> </el-col>
</el-row> </el-row>
</el-skeleton> </el-skeleton>
</el-card> --> </el-card>
</el-col> </el-col>
<el-col :xl="8" :lg="8" :md="24" :sm="24" :xs="24" class="mb-8px"> <el-col :xl="8" :lg="8" :md="24" :sm="24" :xs="24" class="mb-8px">
<el-card shadow="never"> <el-card shadow="never">

View File

@ -27,7 +27,7 @@ public class ProductCategoryDO extends BaseDO {
/** /**
* 限定分类层级 * 限定分类层级
*/ */
public static final int CATEGORY_LEVEL = 2; public static final int CATEGORY_LEVEL = 1;
/** /**
* 分类编号 * 分类编号

View File

@ -126,6 +126,9 @@ public class ProductSpuServiceImpl implements ProductSpuService {
private void validateCategory(Long id) { private void validateCategory(Long id) {
categoryService.validateCategory(id); categoryService.validateCategory(id);
// 校验层级 // 校验层级
System.out.println(categoryService.getCategoryLevel(id));
System.out.println(CATEGORY_LEVEL);
System.out.println(categoryService.getCategoryLevel(id) < CATEGORY_LEVEL);
if (categoryService.getCategoryLevel(id) < CATEGORY_LEVEL) { if (categoryService.getCategoryLevel(id) < CATEGORY_LEVEL) {
throw exception(SPU_SAVE_FAIL_CATEGORY_LEVEL_ERROR); throw exception(SPU_SAVE_FAIL_CATEGORY_LEVEL_ERROR);
} }