升级依赖

This commit is contained in:
2025-01-03 09:13:19 +08:00
parent 0ad404d3e8
commit 6111147671
6 changed files with 61 additions and 49 deletions

View File

@@ -2,8 +2,6 @@ import { loadDict } from "@cps/ma-form/js/networkRequest"
/**
* columnService 列服务处理类
* 首先感谢 @NEKGod 提交的PR此功能原本写在了 Ma-Crud 组件,我特意摘出来,封装成类通过引用来调用
* @author NEKGod, X.Mo <root@imoi.cn>
*/
const objectService = function (item) {

View File

@@ -0,0 +1,12 @@
/**
* @description: js工具类
*/
/**
* 该函数传入一个对象,判断其是否为空
* @param {object} 对象
* @returns {boolean} 是否为空
*/
export function isBlankObj(data: object): boolean {
return Object.keys(data).length > 0
}

View File

@@ -18,8 +18,8 @@
</a>
</a-card>
<a-card type="rounded-sm text-center" class="w-full" :body-style="{ padding: 0 }" :bordered="false">
<a href="https://doc.mineadmin.com/guide/" target="_blank">
<a-button type="outline" class="w-full">感谢:MineAdmin</a-button>
<a href="https://doc.mineadmin.com/" target="_blank">
<a-button type="outline" class="w-full">感谢MineAdmin</a-button>
</a>
</a-card>
<div class="mt-2">管理平台版本</div>

View File

@@ -18,7 +18,8 @@
<script setup lang="ts">
import { PropType } from "vue"
import { useRouter } from "vue-router"
import type { IPageHeaderProps } from "./types"
import { type IPageHeaderProps } from "./types"
import { isBlankObj } from "@/utils/extensions/JsTools"
// 组件属性
const props = defineProps({
data: {
@@ -26,9 +27,6 @@ const props = defineProps({
required: true
}
})
const isBlankObj = (data: IPageHeaderProps) => {
return Object.keys(data).length > 0
}
const router = useRouter()
// 返回上个页面
const handleBackClick = () => {