feat: 拉取代码
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user