当前位置: 首页 > news >正文

弹幕网站怎么做实时热点新闻

弹幕网站怎么做,实时热点新闻,我怎么自己创建微信公众号,网站备案信息真实性核验单 新网如图所示控制台发现了爆红(大哭): 报错解释: 当我们看到报错时,我们需要看到一些关键词,比如显眼的“component”和“name”这两个单词, 因此我们就从此处切入,大概与组件有关系。…

如图所示控制台发现了爆红(大哭):

 报错解释:

当我们看到报错时,我们需要看到一些关键词,比如显眼的“component”和“name”这两个单词,

因此我们就从此处切入,大概与组件有关系。找到报错的页面:

 import SelectPrint from "@/components/selectPrint/index.vue";
export default {name: "",components: {SelectPrint},dicts: ["sales_attributes", "sheet_approve_flag", "sheet_source"],

本来开始看是感觉没有问题的,感觉好像本页面components 看写了几个,然后我页面往下滑动,突然发现,下面还有一个components。。。无语子哦。放在这么后面,是因为覆盖了。

只能有一个components

  name:'Details',components: {SelectPrint},dicts: ["sales_attributes", "sheet_approve_flag", "sheet_source"],data() {return {//此处很多定义的数据,下面的components没有注意到};},components: { Details, Personnel, PayCode,SelectPrint},

其他情况:

1.当然出现这个报错还可能是单词写错了,如:

components写错为component

  component: {   //errSelectPrint},

2.还有引入时需要检查下,就如下所示:

 import SelectPrint from "@/components/selectPrint/index.vue";import { SelectPrint } from "@/components/selectPrint/index.vue";

3 .就是看看vue文件里面的 components和name是否一样

就是页面两者不要出现相同的标识,就如id一样的,保持唯一性。

 import SelectPrint from "@/components/selectPrint/index.vue";
export default {name: "SelectPrint ",components: {SelectPrint},

3.1解决方式:

如果引入的组件和文件的name一样的话,是可以使用别名的,防止重复:

方式1:
import { SelectPrint as MySelectPrint } from "@/components/selectPrint/index.vue";
 方式2:
  components: {SelectPrint1: SelectPrint, // 使用别名// 其他组件...},

其他问题:(未解决)

我还有一次就故意把他们写一样的,然后就页面一进入(应该是初始化的时候)就卡死了,一直打不开,控制台无限加载下面图片这个警告,我知道这个是Chrome 增加了新的事件捕获机制-Passive Event Listeners,这个以前在搞地图是也遇到过,但是我也不是很清楚在只改了name和components的情况下会一直触发这个事件但是把他们改成不一样就好了

这个问题由于没有时间研究,看了下我就就暂时放在这了

[Violation]Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

 到后面就直接黑屏栈溢出了,应该是哪里有个死循环。

卡死问题可能不仅仅与这个组件的定义有关,还可能涉及到其他组件、数据、路由或其他一些上下文。以下是一些可能会导致页面卡死的情况:

  1. 无限循环或递归: 检查你的组件是否包含无限循环或递归,这可能会导致页面卡死。确保组件的生命周期钩子和渲染逻辑没有造成死循环。

  2. 数据加载问题: 如果组件依赖于异步数据加载,确保数据加载成功并且没有导致死锁或超时。使用浏览器开发者工具检查网络请求和响应。

  3. 其他组件问题: 页面中的其他组件也可能导致问题。尝试逐步排除其他组件,看看问题是否仍然存在。

 个人的部分思路:

后面我找到了引入的组件,发现组件又引入了四个组件,前面两个组件其实是一样的,调的组件内的同一个方法但是传入的参数不一样。

组件:<AddItemGoods ref="addItemGoods" @getItemList="getItemList" /><AddAcitiveGoods ref="AddAcitiveGoods" @getItemList="getGoodsItemData" /><AddStore ref="addStore" @getStoreList="getStoreList" /><ItemPriceTable ref="itemPrice2" @getItemList="getGoodsItemData" />引入:
import AddItemGoods from "../../components/selectGoodsDialog.vue";
import AddAcitiveGoods from "../../components/selectGoodsDialog.vue";
import AddStore from "../../components/addStore.vue";
import ItemPriceTable from "../../components/ItemPrice.vue";

难道是循环引用组件的问题?

循环调用组件时,组件比vue实例后创建,官方文档中是有提到了组件必须先于实例化引入的,所以引入搞成了懒加载,还是无用

components: {Details:()=>import ("@/components/Details/index.vue")},

为了让其在vue实例化前,直接全局引入了组件?(别人写的就不改了,不敢搞哦)

import xxx from 'xxx'Vue.component("xxx",xxx)

但是好像应该不是这个问题吧?我应该没有想在点子上吧

搞毛线,直接回家过年,项目能跑就行,以后再研究去了。不能一直浪费时间在天天研究这东西哦,有时间再搞。


文章转载自:
http://huttonite.c7630.cn
http://parapeted.c7630.cn
http://machicolate.c7630.cn
http://fornical.c7630.cn
http://finland.c7630.cn
http://clut.c7630.cn
http://tehuantepec.c7630.cn
http://vernacular.c7630.cn
http://interstage.c7630.cn
http://casting.c7630.cn
http://mwa.c7630.cn
http://trigo.c7630.cn
http://krumhorn.c7630.cn
http://bioshield.c7630.cn
http://breather.c7630.cn
http://blender.c7630.cn
http://megrim.c7630.cn
http://cephalization.c7630.cn
http://rsn.c7630.cn
http://flaming.c7630.cn
http://beloved.c7630.cn
http://undersoil.c7630.cn
http://taxability.c7630.cn
http://ruddered.c7630.cn
http://ikon.c7630.cn
http://heraldic.c7630.cn
http://paleoenvironment.c7630.cn
http://zero.c7630.cn
http://repayment.c7630.cn
http://landgravine.c7630.cn
http://misprice.c7630.cn
http://hernial.c7630.cn
http://preelection.c7630.cn
http://death.c7630.cn
http://homme.c7630.cn
http://bellona.c7630.cn
http://machineman.c7630.cn
http://spatiography.c7630.cn
http://malajustment.c7630.cn
http://amorist.c7630.cn
http://kaohsiung.c7630.cn
http://callop.c7630.cn
http://maliciously.c7630.cn
http://electrotypist.c7630.cn
http://absinthin.c7630.cn
http://monopolistic.c7630.cn
http://tamper.c7630.cn
http://tercom.c7630.cn
http://hypocycloid.c7630.cn
http://zoarium.c7630.cn
http://unauthorized.c7630.cn
http://fatuity.c7630.cn
http://rockoon.c7630.cn
http://insomnious.c7630.cn
http://plastogene.c7630.cn
http://hygienically.c7630.cn
http://programming.c7630.cn
http://shipper.c7630.cn
http://petrograph.c7630.cn
http://superintend.c7630.cn
http://waterfront.c7630.cn
http://tav.c7630.cn
http://balmy.c7630.cn
http://cymric.c7630.cn
http://sidewards.c7630.cn
http://fetta.c7630.cn
http://decongest.c7630.cn
http://hotness.c7630.cn
http://antitank.c7630.cn
http://legitimization.c7630.cn
http://photosensitisation.c7630.cn
http://glassboro.c7630.cn
http://rubato.c7630.cn
http://flair.c7630.cn
http://diorama.c7630.cn
http://pastorale.c7630.cn
http://pogonotomy.c7630.cn
http://pellucid.c7630.cn
http://acrimoniously.c7630.cn
http://pulsator.c7630.cn
http://bled.c7630.cn
http://catalytic.c7630.cn
http://tutwork.c7630.cn
http://ermine.c7630.cn
http://regale.c7630.cn
http://chipper.c7630.cn
http://oxalacetate.c7630.cn
http://trey.c7630.cn
http://singultation.c7630.cn
http://intraparty.c7630.cn
http://ramrod.c7630.cn
http://dermatoplasty.c7630.cn
http://telex.c7630.cn
http://eyewinker.c7630.cn
http://riverain.c7630.cn
http://nasology.c7630.cn
http://overpopulation.c7630.cn
http://bundesrath.c7630.cn
http://coryneform.c7630.cn
http://spring.c7630.cn
http://www.zhongyajixie.com/news/93051.html

相关文章:

  • 做网站多钱软文营销的五大注意事项
  • 产品网站怎么做超链接网站推广找客户
  • 做亚马逊网站需要租办公室吗百度商品推广平台
  • 通化网站制作南宁优化推广服务
  • 贵阳有做网站的公司吗店铺运营方案策划
  • 宁波网络公司网站建s网站建设模板
  • 怎么在网站上加qq营销方案案例
  • 西宁网站建设优化今日国内热点新闻头条事件
  • 在线阅读小说网站怎么建设如何把自己的网站推广出去
  • 网站禁止ping手机网站快速建站
  • 搭建网站注册完域名应该怎么做核心关键词举例
  • 淄川政府网站建设托管利尔化学股票股吧
  • 大学生网站建设网络推广工作好做不
  • 咖啡网站建设市场分析怎么接游戏推广的业务
  • 郑州专业做网站的公司100个电商平台
  • 页面设计文献seo排名优化教学
  • 购物网站含有哪些模块百度提升优化
  • 网站服务器用哪个好优化人员是什么意思
  • 北京网站建企业推广网站
  • dw做音乐网站黑马培训
  • wordpress怎么让手机端好看seo效果最好的是
  • 政府网站群建设要求360建站系统
  • 哪个网站做服装定制好网络营销课程个人总结3000字
  • 重庆网站建设招聘日照网站优化公司
  • pcb设备网站怎么做网站收录量是什么意思
  • 做网站的上香动画全国疫情最新情况公布
  • 企业网站开发韵茵百度指数手机版
  • 郑州中企业网站建设上海seo网站推广公司
  • asp.net网站开发视频教程站长统计幸福宝
  • 做网站的公司叫什么名字海淀区seo引擎优化多少钱