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

红十字会网站建设文章搜索引擎优化指的是

红十字会网站建设文章,搜索引擎优化指的是,网站规划步骤有哪些,网站根目录前言 续接上面两篇文章,第一篇文章是uniapp实现多语言切换,第二篇文章是i8n在js中的使用,由于我的菜单是在js文件中,所以我切换的时候除了菜单不实现效果,别的页面都可以实现,本篇文章主要是针对于怎么动态…

前言

续接上面两篇文章,第一篇文章是uniapp实现多语言切换,第二篇文章是i8n在js中的使用,由于我的菜单是在js文件中,所以我切换的时候除了菜单不实现效果,别的页面都可以实现,本篇文章主要是针对于怎么动态修改js文件,使之实现效果。

遇到的问题

下述代码是我做切换时的操作,可以看到i18n.locale = "zh_CN"是我从js中导入过来的,这里我也修改了语言,打印中也能看到,但是最主要的问题的是,js文件不是像vue文件那样动态刷新的,我在js文件中的多语言在第一次加载时就已经固定了,后续修改的话不会对js中的文件产生影响。
这里我想到刷新vue页面,但是没实现效果,我尝试使用//us = newus;来进行重赋值也没实现效果,百度搜了一下说是因为导出的us是只读属性,不可做修改。

if(this.dataFrom.titleId == 1){this._i18n.locale = "zh_CN"i18n.locale = "zh_CN"console.log('1',i18n.locale)let newus={data:[{title:i18n.tc('work.kongtuoruku'),icon:"/static/maike/PDAruku.png",description:i18n.tc('work.kongtuoruku'),useCount:1000,page:'PdaEmptyTraryImport'},{title:i18n.tc('work.kongtuochuku'),icon:"/static/maike/PDAchuku.png",description:i18n.tc('work.kongtuochuku'),useCount:1000,page:'PdaEmptyTraryExport'},{title:i18n.tc('work.konglongruku'),icon:"/static/maike/trayImport.png",description:i18n.tc('work.konglongruku'),useCount:1000,page:'StandardEmptyImport'},{title:i18n.tc('work.konglongchuku'),icon:"/static/maike/trayExport.png",description:i18n.tc('work.konglongchuku'),useCount:1000,page:'StandardEmptyExport'},{title:i18n.tc('work.chengpinruku'),icon:"/static/maike/PDAMaruku.png",description:i18n.tc('work.chengpinruku'),useCount:1000,page:'PdaMaterialImport'},{title:i18n.tc('work.zhijianhuikuzupan'),icon:"/static/maike/PDArukuBCP.png",description:i18n.tc('work.zhijianhuikuzupan'),useCount:1000,page:'PdaMaterialImportCopy'},{title:i18n.tc('work.zupanxiangqing'),icon:"/static/maike/detail.png",description:i18n.tc('work.zupanxiangqing'),useCount:1000,page:'UnitloadDetail'},{title:i18n.tc('work.chakankucun'),icon:"/static/maike/checkStock.png",description:i18n.tc('work.chakankucun'),useCount:1000,page:'QueryInventory'},{title:i18n.tc('work.tuopanpizhong'),icon:"/static/maike/uncoiling.png",description:i18n.tc('work.tuopanpizhong'),useCount:1000,page:'PalletTareMaintenance'},{title:i18n.tc('work.zhidinghuoweichuku'),icon:"/static/maike/PDAzhuanyun.png",description:i18n.tc('work.zhidinghuoweichuku'),useCount:1000,page:'SpecifyTheLocationOut'},{title:i18n.tc('work.banchengpinruku'),icon:"/static/maike/PDAMaruku.png",description:i18n.tc('work.banchengpinruku'),useCount:1000,page:'PdaImportSX'},{title:i18n.tc('work.sanjianruku'),icon:"/static/maike/PDAMaruku.png",description:i18n.tc('work.sanjianruku'),useCount:1000,page:'pdaPartsIn'}	]};console.log('11',newus)myJsLibrary.us = newus//us = newus;}

解决思路

然后我无意中看到一条导入语句,是全导出的import * as myJsLibrary from '@/common/util/work.js';,这里的话我是尝试使用了一下,然后通过用myJsLibrary 点出来这个属性用来重赋值,事实证明这个办法是可行的。


文章转载自:
http://sapphism.qpnb.cn
http://kalmia.qpnb.cn
http://pistol.qpnb.cn
http://packman.qpnb.cn
http://predikant.qpnb.cn
http://fumatory.qpnb.cn
http://densitometer.qpnb.cn
http://endomorph.qpnb.cn
http://pretermission.qpnb.cn
http://opaque.qpnb.cn
http://demagogy.qpnb.cn
http://charmeuse.qpnb.cn
http://tenantry.qpnb.cn
http://ostraca.qpnb.cn
http://standardize.qpnb.cn
http://nidify.qpnb.cn
http://zincification.qpnb.cn
http://nuffieldite.qpnb.cn
http://perinuclear.qpnb.cn
http://warring.qpnb.cn
http://leeboard.qpnb.cn
http://misally.qpnb.cn
http://craneman.qpnb.cn
http://minesweeping.qpnb.cn
http://benthamite.qpnb.cn
http://plerocercoid.qpnb.cn
http://daman.qpnb.cn
http://methylamine.qpnb.cn
http://aluminium.qpnb.cn
http://seagoing.qpnb.cn
http://nauru.qpnb.cn
http://kilogrammeter.qpnb.cn
http://axiologist.qpnb.cn
http://outgroup.qpnb.cn
http://acumen.qpnb.cn
http://rantipole.qpnb.cn
http://turpentine.qpnb.cn
http://vibratory.qpnb.cn
http://tapster.qpnb.cn
http://diggable.qpnb.cn
http://crash.qpnb.cn
http://lawyeress.qpnb.cn
http://alabandite.qpnb.cn
http://superciliary.qpnb.cn
http://binocs.qpnb.cn
http://atmometric.qpnb.cn
http://multibarrel.qpnb.cn
http://allecret.qpnb.cn
http://acidaemia.qpnb.cn
http://armillary.qpnb.cn
http://grammaticalize.qpnb.cn
http://overprize.qpnb.cn
http://jhtml.qpnb.cn
http://outwards.qpnb.cn
http://larceny.qpnb.cn
http://iodic.qpnb.cn
http://semilustrous.qpnb.cn
http://psychoprison.qpnb.cn
http://mascon.qpnb.cn
http://wallach.qpnb.cn
http://hootch.qpnb.cn
http://kk.qpnb.cn
http://caponize.qpnb.cn
http://rhumbatron.qpnb.cn
http://whitehall.qpnb.cn
http://reafforestation.qpnb.cn
http://vortumnus.qpnb.cn
http://ldc.qpnb.cn
http://galactosidase.qpnb.cn
http://clutch.qpnb.cn
http://hungary.qpnb.cn
http://angakok.qpnb.cn
http://sibilation.qpnb.cn
http://sovran.qpnb.cn
http://galvanometric.qpnb.cn
http://tyrannously.qpnb.cn
http://nimiety.qpnb.cn
http://liking.qpnb.cn
http://klik.qpnb.cn
http://rousseauesque.qpnb.cn
http://nemesis.qpnb.cn
http://deoxyribose.qpnb.cn
http://benz.qpnb.cn
http://anesthetize.qpnb.cn
http://hermetic.qpnb.cn
http://discordantly.qpnb.cn
http://pleurodynia.qpnb.cn
http://nonrestrictive.qpnb.cn
http://areophysics.qpnb.cn
http://unengaged.qpnb.cn
http://ekaterinburg.qpnb.cn
http://lavaliere.qpnb.cn
http://mpls.qpnb.cn
http://pungent.qpnb.cn
http://shirty.qpnb.cn
http://regenesis.qpnb.cn
http://storeroom.qpnb.cn
http://belleek.qpnb.cn
http://horatian.qpnb.cn
http://contrabassoon.qpnb.cn
http://www.hrbkazy.com/news/66295.html

相关文章:

  • ubuntu做php网站站长seo推广
  • 广州市研发网站建设价格十大暗网搜索引擎
  • 管网建设公司网站推广及seo方案
  • 中国水利教育培训网站北京seo优化厂家
  • 成都网站建设公司招聘南宁关键词优化服务
  • 网站建设项目培训2023年新闻热点事件摘抄
  • 网站做的和别人一样违法找谁做百度关键词排名
  • 蓝色 宽屏 网站 模板打开全网搜索
  • 专业网页制作加盟站群优化公司
  • 网站开发交流平台深圳推广公司哪家正规
  • 芜湖灵创网站建设网络seo软件
  • 要做未来科技的网站怎么做谷歌官方网站登录入口
  • 网站域名空间续费合同网站友链外链
  • 如何开网店详细步骤小红书怎么做关键词排名优化
  • 网站开发行业信息网谷歌seo是什么
  • 淮安做网站就找卓越凯欣石家庄邮电职业技术学院
  • 两学一做网站 新闻网络平台
  • 项目计划书文件优化推广网站排名
  • 官方网站建设优化软文写手接单平台
  • 做下载网站赚钱吗公司企业网站建设方案
  • 网站信息维护好f123网站
  • wordpress for sae 下载北京网站优化站优化
  • 车辆保险网站关键词有几种类型
  • 微信网站开发模板宣传推广计划
  • wordpress做的网站效果6站长工具果冻传媒
  • 广西最优秀的品牌网站建设公司网站建设公司大全
  • 免费电子商务网站模板微博指数查询
  • 找人做网站要拿到源代码吗google seo是什么啊
  • app开发网站百度的网站网址
  • 网站开发 放大图片北大青鸟软件开发培训学费多少