![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue3
这是个问题
被前端供养的人
展开
-
vue3 .env 环境变量的配置及应用
vue3 .env环境文件的配置与使用原创 2022-11-18 16:56:46 · 3645 阅读 · 0 评论 -
vue3 vite proxy代理用法
1)vite.configs.ts文件server: { host: "0.0.0.0", port: 4001, // 设置服务启动端口号 open: true, // 设置服务启动时是否自动打开浏览器 cors: true, // 允许跨域 proxy: { // 此处为抽取的接口 端口后的统一部分 // 例如: http://199.199.9.9:8080/mars/v1 http://199.199.9原创 2022-05-27 15:58:47 · 1671 阅读 · 0 评论 -
解决 Cannot find module ‘element-plus/es/popper ‘ or its corresponding type declarations.
vue3+ts项目打包报Elementui内部的错 Cannot find module 'element-plus/es/popper' or its corresponding type declarations.解决方法:在tsconfig.json文件,compilerOptions里加入 “skipLibCheck”: true,原创 2021-11-18 16:11:20 · 7142 阅读 · 0 评论 -
VUE实现前台图片 标注(添加矩形框)、放大、缩小、拖拽
需求:实现图片上自定义多个矩形选框,选框可移动缩放拖动,图片可以放大缩小、拖拽 ,选框内填充标注文字。框内填充文字基本都会,不多赘述,后期可添加选框移除功能(思路右击选框弹出选项删除,获取当前点击选框index,在选框arry中移除即可)后续功能可根据个人需求添加,如保存标注图片等等看下成品:代码<template> <div id="test" style="user-select: none;"> <button @click="fangda">放大转载 2021-09-08 09:01:51 · 3050 阅读 · 0 评论 -
vue router中如何使用i18n
1)准备翻译2)写入原创 2021-06-29 16:02:10 · 2684 阅读 · 1 评论 -
如何在vue3中使用后i18n
Vue3项目中插件不能全局引用了,要在页面内按需引入因此在main.js/.ts中写的不生效1)安装npm install vue-i18n --save在src文件夹下创建文件 src/i18nPlugin.jsimport { ref, provide, inject } from "vue"; const createI18n = config => ({ locale: ref(config.locale), messages: config.messages,原创 2021-06-29 15:37:56 · 1483 阅读 · 1 评论