web-权限、文章
This commit is contained in:
@@ -46,7 +46,9 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { ElButton, ElInput, ElTable, ElTableColumn, ElTag, ElPagination, ElMessage } from 'element-plus';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const router = useRouter();
|
||||
const searchKeyword = ref('');
|
||||
const currentPage = ref(1);
|
||||
const pageSize = ref(10);
|
||||
@@ -61,8 +63,16 @@ function loadArticles() {
|
||||
// TODO: 加载文章数据
|
||||
}
|
||||
|
||||
function showCreateDialog() {
|
||||
// TODO: 显示创建文章对话框
|
||||
function showCreateDialog() {
|
||||
// 尝试跳转
|
||||
router.push('/article/add')
|
||||
.then(() => {
|
||||
console.log('路由跳转成功!');
|
||||
console.log('跳转后路由:', router.currentRoute.value.fullPath);
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('路由跳转失败:', err);
|
||||
});
|
||||
}
|
||||
|
||||
function handleDataCollection() {
|
||||
|
||||
Reference in New Issue
Block a user