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

红制作官网长沙seo优化多少钱

红制作官网,长沙seo优化多少钱,网站建设如何描述,温州给企业做网站vue2.x 事件修饰符 button click.stop.selfhandleDelete(item)/button在使用 $confirm 时#xff0c;使用 await 方式时#xff0c;需要添加 catch 回调#xff0c;否则无法获取 $confirm 关闭和取消时的标识值#xff0c;并且后续代码停止执…vue2.x 事件修饰符 button click.stop.selfhandleDelete(item)/button在使用 $confirm 时使用 await 方式时需要添加 catch 回调否则无法获取 $confirm 关闭和取消时的标识值并且后续代码停止执行。如下 const action await this.$confirm(文件删除后无法恢复是否删除, 删除提示).catch(s s)// action confirm 确认删除 // action cancel 取消删除 // action close 关闭提示框JSVue-router 在当前路由界面调用 this.$router.push 访问当前页面报错问题解决方法如下 const originPush Vue.prototype.push Vue.prototype.push function(data) {return originPush.call(data).catch(err err) }TSVue 参考博客https://juejin.cn/post/6876020863683002382 import { Component, Vue, Prop, Watch } from vue-property-decorator import { Route, NavigationGuardNext } from vue-fouter import Header from /components/Header import User from /types/onecomponent({ // 相当于 components: { Header }components: {Header } }) export default class Home extends Vue {// 相当于 props: { msg: }Prop private msg!: string;// 相当于 { props: { title: { type: string, default: 标题 }, required: false } }Prop({ type: string, default: 标题 }) readonly title?:string// 相当于 { props: { author: { type: Object, default: { name: -, age: - }, required: true } } }Prop({ type: Object, default: () ({ name: -, age: - }) }) readonly author!: User// 相当于 data() { message: hello world! }message: string hello world!;// 相当于 computed: { messageInfo() { return this.msg this.message } }get messageInfo() {return this.msg this.message}// 相当于 watch: { $route: { handler: (val, oldVal) { console.log($router watch, val, oldVal) }, immediate: true } }Watch($route, { immediate: true }) changeRouter(val: Route, oldVal: Route) {console.log($router watch, val, oldVal) }// 相当于 computed: { headerRef: { cache: false, get() { return this.$refs.header as Header } } }Ref(header) readonly headerRef!: Headercreated() {}// 相当于 methods: { handleSubmit() { console.log(handleSubmit) } }handleSubmit() {console.log(handleSubmit)} }TSVue-router 在当前路由界面调用 this.$router.push 访问当前页面报错问题解决方法如下 const originPush Vue.prototype.push Vue.prototype.push function (data: any) {try {return originPush.call(data)?.catch(err: any err) } catch (error: any) {return Promise.reject(error) } }TSvuex // /store/index.ts import { Vuex } from vuex const store new Vuex.Store{}({}) export default store// /store/modules/user.ts import { VuexModule, Module, Mutation, Action, getModule } from vuex-module-decorators import store from ../indextype MenuItem {menuName: string,menuId: number,parentId: number,url: string,sysUrl: string }type UserState {menu: MenuItem[] }const menu: MenuItem[] [{ menuId: 1, parentId: 0, url: /home, sysUrl: /home, menuName: 首页 } ]Module({ dynamic: true, store, name: user, namespaced: true }) class UserModule extends VuexModule implements UserState {menu: MenuItem[] []Mutationprivate _setMenu(data: MenuItem[]) {this.menu data}Actionasync login() {return new Promise((resolve, reject) {resolve({ obj: { data: { menu: [] } } })})} }export default getModule(UserModule)TS Echarts 在 vue2.x ts 中引入 echarts 时json文件引入失败。解决方法是在 tsconfig.json 中添加 resolveJsonModule: true, 注意这个属性要放在paths属性之前否则无效。 import jiangsu from /assets/map/jiangsu.json{ resolveJsonModule: true }在 vue2.x ts 中引入 echarts 时 引入的 .json 文件无法识别类型解决方法是使用 jiangsu as any 可以解决问题。 import jiangsu from /assets/map/jiangsu.json import * as echarts from echarts echarts.registerMap(jiangsu, jiangsu as any)
http://www.hkea.cn/news/14541358/

相关文章:

  • 怎么建设游戏试玩平台网站江苏省住房和建设部网站
  • 上海远程教育网站设计与开发公司谷歌paypal下载
  • 萧山网站优化交换友链平台
  • 免费word文档模板下载网站it外包公司排行榜
  • 天津智能网站建设哪里有网站建设的新闻
  • 网站建设可行性的分析如何做漫画赚钱的网站
  • 图片预览网站 末班wordpress更新文件放在哪里
  • 深圳网站建设 制作元赶集网官网首页
  • 黄页名录网站开发wordpress后台左上角
  • 黑龙江建设网站打不开包装设计案例
  • 网站建设都包括哪几个方面wordpress怎么把分类弄成导航
  • wordpress如何上传文件大小岳阳关键词优化
  • 旅行网站排名前十名网域高科学校网站管理系统漏洞
  • 网站优化建设山东海南网站运营托管咨询
  • 郑州专业网站推广公司wordpress 修改文章作者
  • 婚纱摄影网站南昌网站设计企业
  • 江西城乡建设厅网站数码家电商城网站源码
  • 网站外链建设实例问卷调查网站赚钱
  • 中文网站开发软件关于单位网站建设的报告
  • 互联网保险的典型案例seo网站推广是什么
  • 浏阳企业网站建设微信链接的微网站怎么做
  • 网站速度慢如何做优化龙岩抖音seo搜索排名
  • 淮安市盱眙县建设局网站wordpress完美优化
  • 嘉兴做营销型网站什么都能看的浏览器
  • 电话网站域名到期外贸网站推广平台排名前十名
  • 网站建设 资产网站的权限设置
  • 网站建设与管理pdf网站加载流量
  • 网站开发怎样搭建济南seo排名优化推广
  • 网站建设需要确定的问题美篇相册制作免费下载app
  • 济南网站建设正规公司前端静态网站开发