From 6eb03847487cc5cef0051be7702b0282b2e80cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E6=A2=93?= Date: Mon, 9 May 2022 23:20:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0`RouteRecordRaw`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/templates/vue-ts-ant-design/src/router/index.ts | 4 ++-- src/templates/vue-ts-element-plus/src/router/index.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 9d6cca7..edd4db7 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/templates/vue-ts-ant-design/src/router/index.ts b/src/templates/vue-ts-ant-design/src/router/index.ts index 552f620..1ccfe39 100644 --- a/src/templates/vue-ts-ant-design/src/router/index.ts +++ b/src/templates/vue-ts-ant-design/src/router/index.ts @@ -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'), diff --git a/src/templates/vue-ts-element-plus/src/router/index.ts b/src/templates/vue-ts-element-plus/src/router/index.ts index 552f620..1ccfe39 100644 --- a/src/templates/vue-ts-element-plus/src/router/index.ts +++ b/src/templates/vue-ts-element-plus/src/router/index.ts @@ -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'),