[依赖] 升级全局依赖
This commit is contained in:
parent
e72455f61d
commit
72eb03e118
@ -1,7 +1,6 @@
|
||||
import {
|
||||
createMemoryHistory,
|
||||
createRouter as _createRouter,
|
||||
createWebHistory,
|
||||
createWebHashHistory,
|
||||
Router,
|
||||
} from 'vue-router'
|
||||
import zhCN from './zh-CN'
|
||||
@ -11,9 +10,7 @@ const routes = [...zhCN]
|
||||
export function createRouter(): Router {
|
||||
const baseUrl = import.meta.env.BASE_URL
|
||||
return _createRouter({
|
||||
history: import.meta.env.SSR
|
||||
? createMemoryHistory(baseUrl)
|
||||
: createWebHistory(baseUrl),
|
||||
history: createWebHashHistory(baseUrl),
|
||||
routes: routes
|
||||
})
|
||||
}
|
26
package.json
26
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@layui/layui-vue",
|
||||
"version": "0.0.16",
|
||||
"version": "0.0.17",
|
||||
"description": "a component library for Vue 3 base on layui-vue",
|
||||
"main": "lib/layui-vue.umd.js",
|
||||
"module": "lib/layui-vue.es.js",
|
||||
@ -42,37 +42,37 @@
|
||||
"vue-router": "^4.0.10"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.2.19",
|
||||
"vue": "^3.2.20",
|
||||
"vue-router": "^4.0.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/preset-env": "^7.15.6",
|
||||
"@babel/core": "^7.15.8",
|
||||
"@babel/preset-env": "^7.15.8",
|
||||
"@babel/preset-typescript": "^7.15.0",
|
||||
"@rollup/plugin-babel": "^5.3.0",
|
||||
"@types/jest": "^26.0.24",
|
||||
"@types/markdown-it": "^12.2.1",
|
||||
"@types/markdown-it": "^12.2.3",
|
||||
"@types/markdown-it-container": "^2.0.4",
|
||||
"@typescript-eslint/eslint-plugin": "^4.32.0",
|
||||
"@typescript-eslint/parser": "^4.32.0",
|
||||
"@vitejs/plugin-vue": "^1.9.2",
|
||||
"@vue/compiler-sfc": "^3.2.19",
|
||||
"@vue/server-renderer": "^3.2.19",
|
||||
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
||||
"@typescript-eslint/parser": "^4.33.0",
|
||||
"@vitejs/plugin-vue": "^1.9.3",
|
||||
"@vue/compiler-sfc": "^3.2.20",
|
||||
"@vue/server-renderer": "^3.2.20",
|
||||
"@vue/test-utils": "^2.0.0-rc.15",
|
||||
"babel-jest": "^26.6.3",
|
||||
"escape-html": "^1.0.3",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-plugin-prettier": "^3.4.1",
|
||||
"eslint-plugin-vue": "^7.18.0",
|
||||
"eslint-plugin-vue": "^7.19.1",
|
||||
"husky": "^4.3.8",
|
||||
"jest": "^26.6.3",
|
||||
"lint-staged": "^10.5.4",
|
||||
"markdown-it-container": "^3.0.0",
|
||||
"postcss": "^8.3.8",
|
||||
"postcss": "^8.3.9",
|
||||
"postcss-preset-env": "^6.7.0",
|
||||
"prettier": "2.2.1",
|
||||
"prismjs": "^1.25.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"@rollup/plugin-babel": "^5.3.0",
|
||||
"ts-jest": "^26.5.6",
|
||||
"typescript": "^4.4.3",
|
||||
"vite": "2.5.10",
|
||||
|
1147
pnpm-lock.yaml
generated
1147
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user