feat: 🚀 token无感刷新

This commit is contained in:
2025-03-29 16:12:35 +08:00
parent e0f8d6c574
commit 2d7470c133
20 changed files with 32 additions and 27 deletions

View File

@@ -12,7 +12,7 @@
:init-param="dataStore.initParam"
>
<template #cover_image="scope">
<el-image :src="h + scope.row.cover_image" style="width: 60px; height: 60px" />
<el-image :src="scope.row.cover_image ? h + scope.row.cover_image : ''" style="width: 60px; height: 60px" />
</template>
<template #status="scope">
<el-tag effect="dark" :type="scope.row.status === 1 ? 'success' : 'danger'">{{
@@ -59,9 +59,10 @@ import {
getProductListApi,
getProductUpOrShelvesApi,
getProductListSortApi,
getProductListExportApi
getProductListExportApi,
getProductCategoryListApi
} from "@/api/modules/productList";
import { getProductCategoryListApi } from "@/api/modules/productClass";
// import { getProductCategoryListApi } from "@/api/modules/productClass";
import { addLabelValue } from "./utils/common/addLabelValue";
//深拷贝方法
@@ -112,7 +113,7 @@ const getProductListSort = async (row: any) => {
//产品分类(后端大佬说直接掉列表接口)
const getProductCategoryList = async () => {
const result = await getProductCategoryListApi({ page: 1, size: 500 });
const result = await getProductCategoryListApi();
if (result?.code === 0) {
let dataClone: any = cloneDeep(result?.data);
dataStore.formData[2].options = addLabelValue(dataClone);