摘要:
toDaohang(point){ let that = this //打开高德 Dialog.confirm({ title: '', message: '打开高德地图', }) .then(() => { let str = [] if(point!=''){ str = point.split 阅读全文
摘要:
1. 下载 npm install -S echarts 2.使用 方法一(推荐使用) <div class="echart_box" ref="echartDom"></div> <script setup lang="ts"> import * as echarts from "echarts" 阅读全文
摘要:
1、 安装引入 npm install pinia main.ts中挂载 import { createPinia } from 'pinia' const pinia = createPinia(); app.use(pinia); 2、src下新建 store 文件夹(不同模块建立不同文件,在i 阅读全文
摘要:
项目中有些时候会调用不同的的环境接口地址,统一进行管理便于切换 1. static文件夹下新建 config.js: (static/ 目录下的文件并不会被Webpack处理:它们会直接被复制到最终的打包目录(默认是dist/static)下) const URLList = { hotel:{ b 阅读全文
摘要:
eventBus.js import Vue from 'vue'; const EventBus = new Vue() export { EventBus } navHead.vue(收到通知 触发orderService.vue中的列表) import {EventBus} from '@/u 阅读全文
摘要:
Mock 文件夹下新建 mockServe.js import Mock from "mockjs"; import testData from './test.js' import goodData from './goods.js' import infoData from './info.js 阅读全文
摘要:
见:http://pgs98.com/ 无缝滚动: vue3-seamless-scroll 阅读全文
摘要:
main.js Vue.directive('has', { inserted: function (el, binding, vnode) { let btnPermissions = vnode.context.$route.meta.btnPermissions if (!Vue.protot 阅读全文
摘要:
menuFormat.js(格式化路由表) export const initMenu = (data) => { let list = []; data.forEach(router => { let { path, component, name, meta, // icon, children 阅读全文
摘要:
文档地址: https://vmarker.sagocloud.com/about/?spm=a2c6h.24755359.0.0.1b6441e4HwmruJ 实现效果: 清空画布: this.$refs['aiPanel-editor'].clearData() <template> <div 阅读全文