Comments (2)
警告信息
[Vue Router warn]: Component "default" in record with path "/home" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".
warn @ vue-router.mjs:35
extractComponentsGuards @ vue-router.mjs:2054
navigate @ vue-router.mjs:3204
pushWithRedirect @ vue-router.mjs:3145
push @ vue-router.mjs:3080
handleMenuItemClick @ menu.ts:132
handleClick @ menu-item.vue:89
createElementBlock.onClick._cache.<computed>._cache.<computed> @ menu-item.vue:10
callWithErrorHandling @ runtime-core.esm-bundler.js:155
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:164
invoker @ runtime-dom.esm-bundler.js:369
vue-router.mjs:35 [Vue Router warn]: Component "default" in record with path "/" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".
warn @ vue-router.mjs:35
extractComponentsGuards @ vue-router.mjs:2054
navigate @ vue-router.mjs:3204
pushWithRedirect @ vue-router.mjs:3145
push @ vue-router.mjs:3080
handleMenuItemClick @ menu.ts:132
handleClick @ menu-item.vue:89
createElementBlock.onClick._cache.<computed>._cache.<computed> @ menu-item.vue:10
callWithErrorHandling @ runtime-core.esm-bundler.js:155
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:164
invoker @ runtime-dom.esm-bundler.js:369
vue-router.mjs:35 [Vue Router warn]: Component "default" in record with path "/" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.
warn @ vue-router.mjs:35
extractComponentsGuards @ vue-router.mjs:2073
(匿名) @ vue-router.mjs:3260
Promise.then(异步)
navigate @ vue-router.mjs:3255
pushWithRedirect @ vue-router.mjs:3145
push @ vue-router.mjs:3080
handleMenuItemClick @ menu.ts:132
handleClick @ menu-item.vue:89
createElementBlock.onClick._cache.<computed>._cache.<computed> @ menu-item.vue:10
callWithErrorHandling @ runtime-core.esm-bundler.js:155
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:164
invoker @ runtime-dom.esm-bundler.js:369
vue-router.mjs:35 [Vue Router warn]: Component "default" in record with path "/bug" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.
from element-pro-components.
你两个path都是 path: '/',
,肯定会报错。
建议去 vue-route 的文档看下 path 和 redirect
-path: '/',
- redirect: '/bug',
+ path: '/bug',
from element-pro-components.
Related Issues (20)
- 为什么你的css 可以使用& HOT 1
- How to build docs HOT 7
- 【bug】通过babel-plugin-import进行按需引入组件报错无法找到 HOT 9
- 全量引入报错 HOT 4
- 是否可以增加vxe-table的兼容 HOT 1
- vue3 yarn add element-pro-components error HOT 8
- 报错:在使用unplugin-vue-components 和 unplugin-auto-import这两款插件对element-plus进行按需引用时候 HOT 1
- 加一个Columns加一个属性editRender、detailRender支持render的函数动态渲染。 HOT 2
- 搜索和重置按钮添加图标没出现 HOT 3
- checkbox 选中事件无效 HOT 1
- table formatter无效 HOT 1
- undefined value for fields that are not edited HOT 1
- search-menu-right 插槽能改变下位置嘛 HOT 2
- 验证规则 HOT 2
- 官网国际化Bug HOT 2
- pro-layout Bug HOT 1
- array 类型报错is not a string HOT 3
- typo:过度 → 过渡
- [bug] pro-layout menu 卡槽没有把 collapse 参数暴露出来 HOT 7
- CRUD组件 自定义 pro-select 出现递归更新错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from element-pro-components.