gpt4 book ai didi

vue.js - 为什么使用 router.push 会在控制台中出现错误?

转载 作者:行者123 更新时间:2023-12-05 01:52:19 25 4
gpt4 key购买 nike

<分区>

节点 v16.13.2

我的包.json

"dependencies": {
"@capacitor/android": "3.4.3",
"@capacitor/app": "1.1.0",
"@capacitor/core": "3.4.1",
"@capacitor/haptics": "1.1.4",
"@capacitor/keyboard": "1.2.2",
"@capacitor/status-bar": "1.0.8",
"@ionic/vue": "^6.0.13",
"@ionic/vue-router": "^6.0.13",
"@popperjs/core": "^2.11.2",
"axios": "^0.25.0",
"core-js": "^3.6.5",
"vue": "^3.2.31",
"vue-axios": "^3.4.0",
"vue-router": "^4.0.14",
"vuex": "^4.0.2"
},
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/eslint-plugin": "^7.16.5",
"@capacitor/cli": "3.4.1",
"@vue/cli-plugin-babel": "^5.0.4",
"@vue/cli-plugin-eslint": "^5.0.4",
"@vue/cli-service": "^5.0.4",
"@vue/compiler-sfc": "^3.2.31",
"eslint": "^8.12.0",
"eslint-plugin-vue": "^8.5.0",
"eslint-webpack-plugin": "^3.1.1"
},

View 组件

<ion-card
v-for="(page, index) in pageList" :key="index"
@click="() => this.$router.push('/stock/view/' + page.id)">

v-on:click="pageSelected('/stock/view/' + sel.id)"
pageSelected(route) {
if (route) this.$router.push(route);
},

没有[Vue warn]:执行 native 事件处理程序期间未处理的错误

当我点击链接时,出现错误 vue-router.esm-bundler.js?ec2d:2489 Uncaught (in promise) TypeError: api.now is not a function

如果我降级版本,我会得到一个新的错误。

我哪里错了?

错误截图:

enter image description here

尝试降级 npm packets 的版本,但得到一个新的另一个错误。

更新:需要将浏览器Chrome更新到最新版本!

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com