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

电子商务的建站流程孝感市门户网站

电子商务的建站流程,孝感市门户网站,天眼查企业信用查询,网站建设知识文章一. 微乾坤 1. 新增page页面路由,pmi权限中心配置正常#xff0c;跳转链接正确#xff0c;但路由未找到403. 解决#xff1a; 新增的配置是page类型#xff0c;transformQianKunRoute方法转换微前端路由数据 时#xff0c;过滤未兼容page型的路由#xff0c; 解决 [menu,… 一. 微乾坤 1. 新增page页面路由,pmi权限中心配置正常跳转链接正确但路由未找到403. 解决 新增的配置是page类型transformQianKunRoute方法转换微前端路由数据 时过滤未兼容page型的路由 解决 [menu, page].includes(v.resourceType) // 转换微前端路由数据 function transformQianKunRoutes(routes) {return routes.filter(v [menu, page].includes(v.resourceType)).map(data {let path data.resourceUrl.replace(/^\/hw/, ).replace(/\/\//g, /)let componentPath ROUTE_PATHS[path] || pathlet route {id: data.resourceId,name: data.resourceName,path,meta: {id: data.resourceId,icon: ,title: data.resourceName},component: importViews(componentPath.replace(/^\//, )),businessType: /^\/(\w)?\/?/.exec(path)?.[1]}return route}) } 2. 微乾坤子应用打包部署后相关img/font字体资源路径未找到404 尝试子应用webpack配置config.module.rule(fonts)输出publicPath配置路径未果。 2-1.解决 limit 设置大数值打包时字体资源会转base64从而绕过资源文件夹路径不对问题 config.module.rule(fonts).test(/\.(woff2?|eot|ttf|otf|ttc|woff)(\?.*)?$/i).use(url-loader).loader(url-loader).options({limit: 99999999,name: ./src/assets/font/[name].[hash:8].[ext],fallback: {loader: file-loader,options: {name: static/styles/[name].[ext]}}}).end(); 2.2.解决 在public文件夹内放置需要的font资源在index.html上直接引入引入路径带上环境变量配置 % BASE_URL % headmeta charsetutf-8meta http-equivX-UA-Compatible contentIEedge,chrome1meta nameviewport contentwidthdevice-width, initial-scale1, maximum-scale1, user-scalablenometa http-equivContent-Security-Policy contentupgrade-insecure-requestslink relicon href% BASE_URL %favicon.icotitle/titlestylefont-face {font-family: DIN-Medium;src: url(% BASE_URL %font/DIN-Medium.otf) format(truetype);}font-face {font-family: PingFangSC;src: url(% BASE_URL %font/PingFangMedium.ttf) format(truetype);}font-face {font-family: element-icons;src: url(% BASE_URL %font/element-icons.woff) format(woff),url(% BASE_URL %font/element-icons.ttf) format(truetype);font-weight: 400;font-display: auto;font-style: normal}/style /head 二. element-ui组件 1.ele-locale 国际化多语言少配置导致el组件部分文本无文本的问题 自己配置引用的locale/cn.js文件会覆盖ele源码内的locale需要完整的locale-cn配置内容不然会导致el-time-picker,el-date-picker等所有ele组件的文本渲染无文本的问题, cn.js export default {el: {colorpicker: {confirm: 确定,clear: 清空},datepicker: {now: 此刻,today: 今天,cancel: 取消,clear: 清空,confirm: 确定,selectDate: 选择日期,selectTime: 选择时间,startDate: 开始日期,startTime: 开始时间,endDate: 结束日期,endTime: 结束时间,prevYear: 前一年,nextYear: 后一年,prevMonth: 上个月,nextMonth: 下个月,year: 年,month1: 1 月,month2: 2 月,month3: 3 月,month4: 4 月,month5: 5 月,month6: 6 月,month7: 7 月,month8: 8 月,month9: 9 月,month10: 10 月,month11: 11 月,month12: 12 月,// week: 周次,weeks: {sun: 日,mon: 一,tue: 二,wed: 三,thu: 四,fri: 五,sat: 六},months: {jan: 一月,feb: 二月,mar: 三月,apr: 四月,may: 五月,jun: 六月,jul: 七月,aug: 八月,sep: 九月,oct: 十月,nov: 十一月,dec: 十二月}},select: {loading: 加载中,noMatch: 无匹配数据,noData: 无数据,placeholder: 请选择},cascader: {noMatch: 无匹配数据,loading: 加载中,placeholder: 请选择,noData: 暂无数据},pagination: {goto: 前往,pagesize: , // 主要为了XX-ui规范分页位置不显示分/页 字样total: {total} 条,pageClassifier: 页},messagebox: {title: 提示,confirm: 确定,cancel: 取消,error: 输入的数据不合法!},upload: {deleteTip: 按 delete 键可删除,delete: 删除,preview: 查看图片,continue: 继续上传},table: {emptyText: 暂无数据,confirmFilter: 筛选,resetFilter: 重置,clearFilter: 全部,sumText: 合计},tree: {emptyText: 暂无数据},transfer: {noMatch: 无匹配数据,noData: 无数据,titles: [列表 1, 列表 2],filterPlaceholder: 请输入搜索内容,noCheckedFormat: 共 {total} 项,hasCheckedFormat: 已选 {checked}/{total} 项},image: {error: 加载失败},pageHeader: {title: 返回},popconfirm: {confirmButtonText: 确定,cancelButtonText: 取消},empty: {description: 暂无数据}} };2.el-tabs 的下标线初始化时未有下标线 用document.getElementsByClassName获取元素及宽度值  初次未点击触发active时直接设置第一个el-tabs__active-bar的宽度。 mounted() { // 初始-默认选项的选中下标线, 20 是 el-tabs__item的左右padding值setTimeout(() {this.$nextTick(() {const itemDom document.getElementsByClassName(el-tabs__item)[0]// console.log(el-tabs__item_text_Dom, itemDom, itemDom.clientWidth)const activeBarElement document.getElementsByClassName(el-tabs__active-bar)[0]activeBarElement.style.width String(itemDom.clientWidth - 20) px;}) }) } 3.el-switch 加底部背景文字activeText-问题 采用props配置isChecked className样式一起控制 文字左右位置显示 templatediv classswitch-wrapperel-switch :isCheckedisCheckedchange(e) switchChange(e)/div v-ifshowLabel activeText isChecked classlabel right{{ activeText }}/divdiv v-ifshowLabel inactiveText !isChecked classlabel left{{ inactiveText}}/div/div /template scriptexport default {props: {inactiveText {type: String, default: 启用 },activeText: {type: String, default: 停用 }, showLabel: Boolean, isChecked: { type: Boolean, default: false }},watch: {value(newVal, oldVal) {if (newVal ! oldVal) {// console.log(watch()-newVal, newVal)this.switchChange(newVal)}} },methods: {switchChange(e) {// console.log(switchChange()-, e)this.$emit(change, e)},}} /scriptstyle langscss scoped .switch-wrapper {display: inline-flex;align-items: center;vertical-align: middle;position: relative;.label {position: absolute;//margin-left: 8px;line-height: 1em;color: var(--bg-color);}.label.right{left: 7rem;// width: 100%;text-align: center;cursor: pointer;}.label.left{right:7rem;// width: 100%;text-align: center;cursor: pointer;}// .el-switch__core { // width: 56rem !important;} } /style 4.el-popover 位置自动更新问题 通过ref获取el-popover组件-直接执行源码自带的 updatePopper() 方法 this.$nextTick(() {this.$refs.PickerInput.$refs.elPopover.updatePopper() })
http://wiki.neutronadmin.com/news/115062/

相关文章:

  • 浙江省城乡和住房建设厅网站首页广西短视频运营是
  • 网站后台如何上传图片上海网络营销网站建设
  • 用php写的网站怎么把做的网页放网站
  • iis7建设网站网站做乘法表
  • 做网站答辩外贸网站制作
  • 昆明 五华 网站建设半路学网站建设难吗
  • 临沂网站开发公司电话珠海精品网站建设
  • 庆阳网站建设公司哪个公司做网站推广最好
  • 简答网站开发流程ui高级培训机构
  • 企业做网站的公司有哪些学校网站群建设设计
  • 网站建设情况 报告网页网站怎么做的吗
  • 广州新塘做网站网站编写语言
  • 北京 手机网站建设沂源网页定制
  • 岚县网站建设创世网站建设 优帮云
  • 中国网站开发企业信息查询系统官网湖北
  • 南昌手机网站制作网站制作三站
  • ps怎么做网站模板城乡建设网站宁德
  • iis通过地址访问不了网站劳务派遣好还是外包好
  • 国外做建材的网站有哪些平邑建设银行网站
  • 雅安北京网站建设wordpress自定义打不开
  • 自媒体可做外链网站凡科 360免费建站
  • 杭州包装网站建设方案wordpress google font
  • 信息发布网站有哪些微信社区官网
  • 网站关键词优化排名外包单页站好做seo吗
  • 在哪建网站资源库建设网站
  • 沈阳微信网站制作微网站建设正规公司
  • 做网站和做软件一样吗iis新建网站
  • 网站框架搭建在线 网站建设
  • 商务酒店网站模板在线房产网
  • win8网站模板title:(网站建设)