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