committed by
GitHub
co-authored by
bypanghu
parent
eca5967b4d
commit
727caf3f4f
@@ -25,7 +25,7 @@ export default {
|
||||
<script setup>
|
||||
import { getAllApis } from '@/api/api'
|
||||
import { UpdateCasbin, getPolicyPathByAuthorityId } from '@/api/casbin'
|
||||
import { defineProps, ref, defineExpose } from 'vue'
|
||||
import { ref } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
const props = defineProps({
|
||||
row: {
|
||||
|
||||
@@ -22,7 +22,7 @@ export default {
|
||||
<script setup>
|
||||
import { setDataAuthority } from '@/api/authority'
|
||||
import warningBar from '@/components/warningBar/warningBar.vue'
|
||||
import { defineProps, ref, defineEmits, defineExpose } from 'vue'
|
||||
import { ref } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
const props = defineProps({
|
||||
row: {
|
||||
|
||||
@@ -39,7 +39,7 @@ import { getBaseMenuTree, getMenuAuthority, addMenuAuthority } from '@/api/menu'
|
||||
import {
|
||||
updateAuthority
|
||||
} from '@/api/authority'
|
||||
import { defineProps, defineEmits, ref, defineExpose } from 'vue'
|
||||
import { ref } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
const props = defineProps({
|
||||
row: {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<router-view v-slot="{ Component }">
|
||||
<transition mode="out-in" name="el-fade-in-linear">
|
||||
<keep-alive :include="$store.getters['router/keepAliveRouters']">
|
||||
<keep-alive :include="useRouterStore.keepAliveRouters">
|
||||
<component :is="Component" />
|
||||
</keep-alive>
|
||||
</transition>
|
||||
@@ -15,3 +15,6 @@ export default {
|
||||
name: 'SuperAdmin'
|
||||
}
|
||||
</script>
|
||||
<script setup>
|
||||
import { useRouterStore } from '@/pinia/modules/router'
|
||||
</script>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { defineProps, ref, reactive } from 'vue'
|
||||
import { ref, reactive } from 'vue'
|
||||
const props = defineProps({
|
||||
meta: {
|
||||
default: function() {
|
||||
@@ -1153,6 +1153,7 @@ const options = reactive([
|
||||
])
|
||||
|
||||
const metaData = ref(props.meta)
|
||||
metaData.value.icon = options[0].label
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user