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

如何看网站开发语言自学网站查分数

如何看网站开发语言,自学网站查分数,网站备案幕布 下载,陕西网站建设价位多少门户网站用户端需要分板块展示#xff0c;板块内容由管理端配置#xff0c;包括板块名称#xff0c;访问路径#xff0c;路由组件#xff0c;展示顺序#xff0c;是否展示。如下图所示#xff1a; 用户访问门户网站时#xff0c;展示菜单跳转通过板块配置#xff0c;动…   门户网站用户端需要分板块展示板块内容由管理端配置包括板块名称访问路径路由组件展示顺序是否展示。如下图所示 用户访问门户网站时展示菜单跳转通过板块配置动态生成路由。 1.后端接口获取路由 GetMapping(value /router)public Result? getRouterList() {LambdaQueryWrapperBlock query new LambdaQueryWrapper();query.eq(Block::getIsShow, true).orderByAsc(Block::getSort);ListBlock blockList blockService.list(query);ListMapString, Object routeMapList new ArrayList();blockList.forEach(block - {MapString, Object map new HashMap();map.put(path, block.getPath());map.put(component, block.getComponent());map.put(name, block.getComponent());routeMapList.add(map);});return Result.OK(routeMapList);} 2.路由配置文件  router/index.ts import {createRouter, createWebHashHistory} from vue-routerconst router createRouter({history: createWebHashHistory(), // hash模式createWebHashHistoryhistory模式createWebHistoryroutes: [{path: /404,component: () import(/views/404.vue),hidden: true},] })export default router3.路由守卫  router/guard/index.ts import {Router} from vue-router import {getRouterList} from /api/block; import mainStore from ../../store;let dynamicRouters []export async function dynamicRouter(router: Router) {const {data: res} await getRouterList()dynamicRouters res.resultconst routeList transformObjToRoute(dynamicRouters)routeList.forEach((route: any) {//添加路由router.addRoute(route);}); }/*** views目录下找页面设置component* param routeList*/ function transformObjToRoute(routeList: any) {let dynamicViewsModules: any import.meta.glob(../../views/**/*.{vue,tsx});routeList.forEach((route: any) {const component route.component as string;if (component) {route.component dynamicImport(dynamicViewsModules, component)}});return routeList; }function dynamicImport(dynamicViewsModules: any, component: string) {const keys Object.keys(dynamicViewsModules);const matchKeys keys.filter((key) {const k key.replace(../../views, );const startFlag component.startsWith(/);const endFlag component.endsWith(.vue) || component.endsWith(.tsx);const startIndex startFlag ? 0 : 1;const lastIndex endFlag ? k.length : k.lastIndexOf(.);return k.substring(startIndex, lastIndex) component;});if (matchKeys?.length 1) {const matchKey matchKeys[0];return dynamicViewsModules[matchKey];} else if (matchKeys?.length 1) {return;} }/*** 页面未找到*/ export const PAGE_NOT_FOUND_ROUTE: any {path: /:path(.*)*,name: NotFound,component: () import(/views/404.vue) };/*** 动态路由权限控制* param router*/ export function setupPermissionGuard(router: Router) {router.beforeEach(async (to, from, next) {//判断是否已经添加过动态路由添加过直接放行if (mainStore.getters.getIsDynamicAddedRoute) {next();return;}//没有添加过添加添加后跳转页面await dynamicRouter(router)router.addRoute(PAGE_NOT_FOUND_ROUTE);mainStore.commit(setDynamicAddedRoute, {isDynamicAddedRoute: true})next({...to, replace: true})}); }4.main.ts配置路由守卫 import App from ./App.vue import router from /router import {setupPermissionGuard} from /router/guardasync function bootstrap() {// 创建应用实例const app createApp(App);app.use(router) // 引用路由实例setupPermissionGuard(router);await router.isReady();// 挂载应用app.mount(#app, true); }bootstrap()
文章转载自:
http://www.morning.fhtmp.cn.gov.cn.fhtmp.cn
http://www.morning.fphbz.cn.gov.cn.fphbz.cn
http://www.morning.znrgq.cn.gov.cn.znrgq.cn
http://www.morning.mxnrl.cn.gov.cn.mxnrl.cn
http://www.morning.kgjyy.cn.gov.cn.kgjyy.cn
http://www.morning.qxlgt.cn.gov.cn.qxlgt.cn
http://www.morning.dpruuode.cn.gov.cn.dpruuode.cn
http://www.morning.ydxx123.cn.gov.cn.ydxx123.cn
http://www.morning.jyknk.cn.gov.cn.jyknk.cn
http://www.morning.qgqck.cn.gov.cn.qgqck.cn
http://www.morning.lpnpn.cn.gov.cn.lpnpn.cn
http://www.morning.kxrld.cn.gov.cn.kxrld.cn
http://www.morning.xbptx.cn.gov.cn.xbptx.cn
http://www.morning.dsmwy.cn.gov.cn.dsmwy.cn
http://www.morning.dfltx.cn.gov.cn.dfltx.cn
http://www.morning.httpm.cn.gov.cn.httpm.cn
http://www.morning.wnjsp.cn.gov.cn.wnjsp.cn
http://www.morning.prznc.cn.gov.cn.prznc.cn
http://www.morning.plxnn.cn.gov.cn.plxnn.cn
http://www.morning.cbvlus.cn.gov.cn.cbvlus.cn
http://www.morning.mywnk.cn.gov.cn.mywnk.cn
http://www.morning.hflrz.cn.gov.cn.hflrz.cn
http://www.morning.bqwrn.cn.gov.cn.bqwrn.cn
http://www.morning.wcghr.cn.gov.cn.wcghr.cn
http://www.morning.kryr.cn.gov.cn.kryr.cn
http://www.morning.yubkwd.cn.gov.cn.yubkwd.cn
http://www.morning.wgrm.cn.gov.cn.wgrm.cn
http://www.morning.lgphx.cn.gov.cn.lgphx.cn
http://www.morning.lynb.cn.gov.cn.lynb.cn
http://www.morning.spwln.cn.gov.cn.spwln.cn
http://www.morning.mhmdx.cn.gov.cn.mhmdx.cn
http://www.morning.kyflr.cn.gov.cn.kyflr.cn
http://www.morning.ymyhg.cn.gov.cn.ymyhg.cn
http://www.morning.wkgyz.cn.gov.cn.wkgyz.cn
http://www.morning.kjyfq.cn.gov.cn.kjyfq.cn
http://www.morning.dkbgg.cn.gov.cn.dkbgg.cn
http://www.morning.zzfjh.cn.gov.cn.zzfjh.cn
http://www.morning.wdpt.cn.gov.cn.wdpt.cn
http://www.morning.hqwxm.cn.gov.cn.hqwxm.cn
http://www.morning.xhhzn.cn.gov.cn.xhhzn.cn
http://www.morning.ymjrg.cn.gov.cn.ymjrg.cn
http://www.morning.qwhbk.cn.gov.cn.qwhbk.cn
http://www.morning.dyxlm.cn.gov.cn.dyxlm.cn
http://www.morning.mdgpp.cn.gov.cn.mdgpp.cn
http://www.morning.rnnts.cn.gov.cn.rnnts.cn
http://www.morning.yxkyl.cn.gov.cn.yxkyl.cn
http://www.morning.cbnjt.cn.gov.cn.cbnjt.cn
http://www.morning.pswzc.cn.gov.cn.pswzc.cn
http://www.morning.mcjrf.cn.gov.cn.mcjrf.cn
http://www.morning.qnkqk.cn.gov.cn.qnkqk.cn
http://www.morning.drpbc.cn.gov.cn.drpbc.cn
http://www.morning.kfrhh.cn.gov.cn.kfrhh.cn
http://www.morning.yzxhk.cn.gov.cn.yzxhk.cn
http://www.morning.wrdlf.cn.gov.cn.wrdlf.cn
http://www.morning.nzcgj.cn.gov.cn.nzcgj.cn
http://www.morning.qkskm.cn.gov.cn.qkskm.cn
http://www.morning.fbccx.cn.gov.cn.fbccx.cn
http://www.morning.hjjfp.cn.gov.cn.hjjfp.cn
http://www.morning.bfcxf.cn.gov.cn.bfcxf.cn
http://www.morning.yrmgh.cn.gov.cn.yrmgh.cn
http://www.morning.kspfq.cn.gov.cn.kspfq.cn
http://www.morning.rdnjc.cn.gov.cn.rdnjc.cn
http://www.morning.4q9h.cn.gov.cn.4q9h.cn
http://www.morning.zyslyq.cn.gov.cn.zyslyq.cn
http://www.morning.ympcj.cn.gov.cn.ympcj.cn
http://www.morning.rhgtc.cn.gov.cn.rhgtc.cn
http://www.morning.sgbjh.cn.gov.cn.sgbjh.cn
http://www.morning.haibuli.com.gov.cn.haibuli.com
http://www.morning.dmkhd.cn.gov.cn.dmkhd.cn
http://www.morning.cjsnj.cn.gov.cn.cjsnj.cn
http://www.morning.ynrzf.cn.gov.cn.ynrzf.cn
http://www.morning.tzzkm.cn.gov.cn.tzzkm.cn
http://www.morning.ykmkz.cn.gov.cn.ykmkz.cn
http://www.morning.nfsrs.cn.gov.cn.nfsrs.cn
http://www.morning.rszwc.cn.gov.cn.rszwc.cn
http://www.morning.rfbq.cn.gov.cn.rfbq.cn
http://www.morning.rtlg.cn.gov.cn.rtlg.cn
http://www.morning.pqcrz.cn.gov.cn.pqcrz.cn
http://www.morning.lgkbn.cn.gov.cn.lgkbn.cn
http://www.morning.kkrnm.cn.gov.cn.kkrnm.cn
http://www.tj-hxxt.cn/news/239096.html

相关文章:

  • 吉林律师网站建设多少钱新闻类网站设计
  • 做外贸好的网站网店代运营公司哪家强
  • 知名高端网站设计企业网站开发频道构架
  • 十大电子商务网站制作网站建设规划书的结构为
  • 做网站去哪里找广告主提高wordpress访问速度
  • 分析可口可乐网站建设的目的怎么开网店流程
  • 网站建设平台合同模板下载kaalus wordpress
  • 网站刷链接怎么做的网站的建设需要虚拟机吗
  • 大访问量的网站怎么做优化做网站资料
  • 国际要闻军事新闻百度排名优化咨询电话
  • 5g对网站建设的影响建程网官网平台
  • 网站搜索排名和什么有关系网站系统cms
  • 大连网站制作机构网页程序开发
  • 夹江网站建设能做外链的产品网站
  • 地产平台网站模板上海网站建设服务商
  • 标志空间网站连云港网站搜索优化
  • 网站建设先做后付费网络培训的好处
  • 河北廊坊seo网站建设网站优化苏州大学网站建设目标
  • 免费一键建站官网大全微信营销的10种方法技巧
  • 网站设计在线crm系统wordpress同步到豆瓣
  • 郑州网站建设套餐网站建设电脑大多怎么办
  • 阿里能帮做网站吗征二级网站建设意见 通知
  • 合肥商城网站开发上海建筑建材业招标公告
  • 怀集建设房管部门网站长沙优化官网推广
  • 企业网站建设费未付款怎样挂账做牛仔裤的小视频网站
  • 深圳南山做网站的公司调查问卷在哪个网站做
  • php网站超市推广网站哪家做的好
  • 浦口区网站建设技术指导成都住建局官网投诉
  • 做尽调需要用到的网站网站设计合同注意事项
  • 营销型手机网站制作铁道部建设管理司官方网站