报错:"TypeError: Cannot read properties of undefined (reading 'push')"
其实vue-router都配好了,但是还是报错,刚开始也是找了很久,回头一检查就找到了错。
这个router文件在重写push方法的时候,错了一个地方
这里使用call方法重写调用的时候,this少写了一个
你们排错的时候可能不是这个点,但就是和重写push方法相关的地方
时间:2024-03-03 09:54:39
报错:"TypeError: Cannot read properties of undefined (reading 'push')"
其实vue-router都配好了,但是还是报错,刚开始也是找了很久,回头一检查就找到了错。
这个router文件在重写push方法的时候,错了一个地方
这里使用call方法重写调用的时候,this少写了一个
你们排错的时候可能不是这个点,但就是和重写push方法相关的地方