摘要: pinia初使用 npm install pinia import { createPinia } from 'pinia' app.use(createPinia()) 可以直接创建一个pinia文件夹 列如 src/pinia/layout.ts import { defineStore } f 阅读全文
posted @ 2022-12-24 16:52 小万子呀 阅读(86) 评论(0) 推荐(0) 编辑
摘要: vue路由 // 默认没有菜单 var isMenu = false // 路由跳转前触发 router.beforeEach((to, from, next) => { // 加载进度条开始 NProgress.start() // 去获取缓存中的用户信息 const info = vueCook 阅读全文
posted @ 2022-12-24 14:36 小万子呀 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1、建立一个公共的less变量文件 列如 src/publicStyle/varLess.less // src/publicStyle/varLess.less @layout_header: 50px; @layout_foot: 48px; @minWidth: 1366px; //屏幕最小宽 阅读全文
posted @ 2022-12-24 11:05 小万子呀 阅读(2269) 评论(0) 推荐(0) 编辑
摘要: 图层的查询条件 CQL_FILTER 直接通过某个值直接查询 列如 CQL_FILTER = `region_code = ${this.row.regionCode}` CQL_FILTER = 'region_code in (xxxx,xxxx,xxxx,xxxx)' 判断某一个地块是否存在某 阅读全文
posted @ 2022-12-24 10:10 小万子呀 阅读(177) 评论(0) 推荐(0) 编辑