feat:移除“ // 路由”重复注释。
This commit is contained in:
@@ -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: '',
|
||||
|
||||
@@ -120,3 +120,4 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -203,3 +203,5 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
</Grid>
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ function handleExpand() {
|
||||
}
|
||||
|
||||
/** 查看商品操作 */
|
||||
const router = useRouter(); // 路由
|
||||
const router = useRouter();
|
||||
function handleViewSpu(id: number) {
|
||||
router.push({
|
||||
path: '/mall/product/spu',
|
||||
|
||||
@@ -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 数据
|
||||
|
||||
@@ -41,8 +41,8 @@ interface Brand {
|
||||
name: string;
|
||||
}
|
||||
|
||||
const { push } = useRouter(); // 路由
|
||||
const { params } = useRoute(); // 查询参数
|
||||
const { push } = useRouter();
|
||||
const { params } = useRoute();
|
||||
|
||||
const formLoading = ref(false); // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
|
||||
const activeTab = ref('basic'); // 当前激活的标签页
|
||||
|
||||
@@ -178,7 +178,7 @@ const recoverPageIndex = () => {
|
||||
// #endregion
|
||||
|
||||
/** 初始化 */
|
||||
const { currentRoute } = useRouter(); // 路由
|
||||
const { currentRoute } = useRouter();
|
||||
onMounted(async () => {
|
||||
resetForm();
|
||||
if (!currentRoute.value.params.id) {
|
||||
|
||||
Reference in New Issue
Block a user