Skip to content

Commit

Permalink
添加RouteRecordRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiaocz committed May 9, 2022
1 parent 7e44563 commit 6eb0384
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ovx",
"version": "2.1.3",
"version": "2.1.4",
"description": "Orangii's Vue Example, used to quickly generate a template with vus-ts + vue-router + Element Plus/Ant Design.",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/templates/vue-ts-ant-design/src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router';
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';

export const routes = [
export const routes: RouteRecordRaw[] = [
{
path: '/',
component: () => import('../views/index.vue'),
Expand Down
4 changes: 2 additions & 2 deletions src/templates/vue-ts-element-plus/src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router';
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';

export const routes = [
export const routes: RouteRecordRaw[] = [
{
path: '/',
component: () => import('../views/index.vue'),
Expand Down

0 comments on commit 6eb0384

Please sign in to comment.