Skip to content

Commit

Permalink
fixed: 修复无法直接设置router-view的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Oct 16, 2024
1 parent 3e72ea0 commit b8d5e79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


<script setup>
import { onMounted, ref } from "vue";
import { onMounted, ref, watch } from "vue";
import pathInfo from "@/pathInfo.json";
const props = defineProps({
Expand Down Expand Up @@ -84,6 +84,11 @@ function convertToCascaderOptions(data) {
return result;
}
watch(() => props.component, (value) => {
initCascader(value)
})
onMounted(() => {
pathOptions.value = convertToCascaderOptions(pathInfo)
initCascader(props.component)
Expand Down
3 changes: 1 addition & 2 deletions web/src/view/superAdmin/menu/icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
</template>

<script setup>
import { ref, reactive } from 'vue'
import config from '@/core/config'
import { reactive } from 'vue'
defineOptions({
name: 'Icon',
Expand Down

0 comments on commit b8d5e79

Please sign in to comment.