mart-admin/src/views/menu/menu1/menu13/index.vue

22 lines
447 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="layout-pd">
<el-input v-model="val" placeholder="menu13请输入内容测试路由缓存"></el-input>
</div>
</template>
<script setup lang="ts" name="menu13">
import { ref, onActivated, onMounted } from 'vue';
// 定义变量内容
const val = ref('');
// 页面加载时
onMounted(() => {
console.log(2222);
});
// keep-alive 钩子函数,页面进入时
onActivated(() => {
console.log(1111);
});
</script>