feat: 拉取代码

This commit is contained in:
duan
2025-02-24 09:03:50 +08:00
parent 43ae9f371d
commit 0354a5d98d
6 changed files with 272 additions and 144 deletions

View File

@@ -1,10 +1,7 @@
<template>
<el-breadcrumb class="flex-y-center">
<el-breadcrumb-item v-for="(item, index) in breadcrumbs" :key="item.path">
<span
v-if="item.redirect === 'noredirect' || index === breadcrumbs.length - 1"
class="color-gray-400"
>
<span v-if="item.redirect === 'noredirect' || index === breadcrumbs.length - 1" class="color-gray-400">
{{ translateRouteTitle(item.meta.title) }}
</span>
<a v-else @click.prevent="handleLink(item)">
@@ -30,7 +27,6 @@ const pathCompile = (path: string) => {
const breadcrumbs = ref<Array<RouteLocationMatched>>([]);
function getBreadcrumb() {
console.log(currentRoute.matched);
let matched = currentRoute.matched.filter((item) => item.meta && item.meta.title);
const first = matched[0];
if (!isDashboard(first)) {

View File

@@ -46,10 +46,11 @@ let myDialogRef: any = ref(null)
function opens() {
myDialogRef.value.open()
}
const emit = defineEmits(['success'])
// 添加商品的回调
function subitgood() {
// selectData.value = contentRefs.value.getselectTable()
// myDialogRef.value.close()
emit('success', contentRef.value?.getselectTable())
myDialogRef.value.close()
}
defineExpose({ opens })
</script>