feat:移除“ // 路由”重复注释。

pull/236/head
YunaiV 2025-10-21 20:56:53 +08:00
parent 28843fc8fe
commit 1286623863
18 changed files with 25 additions and 23 deletions

View File

@ -11,7 +11,7 @@ import { authorize, getAuthorize } from '#/api/system/oauth2/open';
defineOptions({ name: 'SSOLogin' });
const { query } = useRoute(); //
const { query } = useRoute();
const client = ref({
name: '',

View File

@ -17,7 +17,7 @@ import Form from '../../../../model/chatRole/modules/form.vue';
import RoleCategoryList from './RoleCategoryList.vue';
import RoleList from './RoleList.vue';
const router = useRouter(); //
const router = useRouter();
const [Drawer] = useVbenDrawer({
title: '角色管理',
footer: false,

View File

@ -28,7 +28,7 @@ import MessageNewConversation from './components/message/MessageNewConversation.
/** AI 聊天对话 列表 */
defineOptions({ name: 'AiChat' });
const route = useRoute(); //
const route = useRoute();
const [FormModal, formModalApi] = useVbenModal({
connectedComponent: ConversationUpdateForm,
destroyOnClose: true,

View File

@ -24,7 +24,7 @@ import ImageDetail from './ImageDetail.vue';
//
const emits = defineEmits(['onRegeneration']);
const router = useRouter(); //
const router = useRouter();
const [Drawer, drawerApi] = useVbenDrawer({
title: '图片详情',
footer: false,

View File

@ -20,8 +20,8 @@ import ProcessStep from './ProcessStep.vue';
import SplitStep from './SplitStep.vue';
import UploadStep from './UploadStep.vue';
const route = useRoute(); //
const router = useRouter(); //
const route = useRoute();
const router = useRouter();
//
const uploadDocumentRef = ref();

View File

@ -25,8 +25,8 @@ import { useGridColumns, useGridFormSchema } from './data';
defineOptions({ name: 'AiKnowledgeDocument' });
const { hasAccessByCodes } = useAccess();
const route = useRoute(); //
const router = useRouter(); //
const route = useRoute();
const router = useRouter();
/** 刷新表格 */
function handleRefresh() {
gridApi.query();

View File

@ -20,8 +20,8 @@ import { searchKnowledgeSegment } from '#/api/ai/knowledge/segment';
/** 文档召回测试 */
defineOptions({ name: 'KnowledgeDocumentRetrieval' });
const route = useRoute(); //
const router = useRouter(); //
const route = useRoute();
const router = useRouter();
const loading = ref(false); //
const segments = ref<any[]>([]); //

View File

@ -73,7 +73,7 @@ function openSignatureModal() {
signatureModalApi.setData(null).open();
}
const router = useRouter(); //
const router = useRouter();
const userStore = useUserStore();
const userId = userStore.userInfo?.id;
const formLoading = ref(false); //

View File

@ -36,7 +36,7 @@ const emit = defineEmits<{
selectUserConfirm: [activityId: string, userList: any[]];
}>();
const { push } = useRouter(); //
const { push } = useRouter();
//
const statusIconMap: Record<

View File

@ -64,7 +64,7 @@ function handleExpand() {
}
/** 查看商品操作 */
const router = useRouter(); //
const router = useRouter();
function handleViewSpu(id: number) {
router.push({
path: '/mall/product/spu',

View File

@ -2,7 +2,6 @@
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { MallSpuApi } from '#/api/mall/product/spu';
// TODO @xingyu mall search xxx
import { onMounted, ref } from 'vue';
import { useRoute, useRouter } from 'vue-router';
@ -31,12 +30,12 @@ import { $t } from '#/locales';
import { useGridColumns, useGridFormSchema } from './data';
const { push } = useRouter();
const route = useRoute(); //
const route = useRoute();
const tabType = ref(0);
// TODO @AI data.ts
const categoryList = ref();
// tabs
const tabsData = ref([
{
name: '出售中',
@ -63,7 +62,7 @@ const tabsData = ref([
type: 4,
count: 0,
},
]);
]); // tabs
/** 刷新表格 */
async function handleRefresh() {

View File

@ -11,7 +11,7 @@ import { authorize, getAuthorize } from '#/api/system/oauth2/open';
defineOptions({ name: 'SSOLogin' });
const { query } = useRoute(); //
const { query } = useRoute();
const client = ref({
name: '',

View File

@ -120,3 +120,4 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
},
];
}

View File

@ -203,3 +203,5 @@ const [Grid, gridApi] = useVbenVxeGrid({
</Grid>
</Page>
</template>

View File

@ -63,7 +63,7 @@ function handleExpand() {
}
/** 查看商品操作 */
const router = useRouter(); //
const router = useRouter();
function handleViewSpu(id: number) {
router.push({
path: '/mall/product/spu',

View File

@ -31,7 +31,7 @@ import { useGridColumns, useGridFormSchema } from './data';
const { push } = useRouter();
const tabType = ref(0);
const route = useRoute(); //
const route = useRoute();
const categoryList = ref();
// tabs

View File

@ -41,8 +41,8 @@ interface Brand {
name: string;
}
const { push } = useRouter(); //
const { params } = useRoute(); //
const { push } = useRouter();
const { params } = useRoute();
const formLoading = ref(false); // 12
const activeTab = ref('basic'); //

View File

@ -178,7 +178,7 @@ const recoverPageIndex = () => {
// #endregion
/** 初始化 */
const { currentRoute } = useRouter(); //
const { currentRoute } = useRouter();
onMounted(async () => {
resetForm();
if (!currentRoute.value.params.id) {