nuxtjs线上环境报错:Failed to execute 'appendChild' on 'Node'

DOMException: Failed to execute 'appendChild' on 'Node': This node type does not support this method.

打包到线上报错了,看网上解决方案把v-if改成了v-show还是会报错。
image.png

阅读 3.3k
2 个回答

在 mounted 生命周期时才能使用 浏览器的 api

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题