Nuxt.js Unexpected token ‘export‘
摘要:这种情况报错如果是知道问价的话,就看文件比如 遇到这种情况看下该文件 是这个报错,这时候打包的时候转换一下就可以了 在 nuxtt.config 的build中配置: build: { transpile: [ 'vant/es/locale/l...
阅读全文
posted @
2021-05-28 15:43
lllomh
阅读(325)
推荐(0)
nodejs对接ueditor编辑器图片上传问题
摘要:这里 用use 因为请求有 get 也有 post 所以不能固定指定方式 const path=require('path');//加载ueditor 模块var ueditor = require("ueditor");router.use("/ued...
阅读全文
posted @
2021-05-11 18:21
lllomh
阅读(114)
推荐(0)
elementUI 限制上传图片尺寸
摘要:先定义方法 //限制图片尺寸 limitFileWH(E_width, E_height, file) { let _this = this; let imgWidth = ""; let imgHight = ""...
阅读全文
posted @
2021-05-10 14:18
lllomh
阅读(290)
推荐(0)
nuxt 报Though the “loose“ option was set to “false“ in your @babel/preset-env config, it will not(解决)
摘要:nuxt 执行报错 : WARN Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/p...
阅读全文
posted @
2021-05-08 14:06
lllomh
阅读(1088)
推荐(0)
react-keep-alive 缓存使用
摘要:今天来说说,react 的路由缓存,这个在react 中很少有实质性可用的资料!此篇记录一下 demo 请狠狠的戳这里 ¥ http://download.lllomh.com/cliect/#/product/J804099672377354 demo 请...
阅读全文
posted @
2021-05-02 00:19
lllomh
阅读(635)
推荐(0)
React 中 路由 react-router-dom 的用法
摘要:理由定义: 定义好 路由指向,然后再在index.js根文件中注册渲染 在需要跳转的地方引入 import { BrowserRouter as Router, Route,Link } from "react-router-dom" 这样既可 ...
阅读全文
posted @
2021-05-01 06:56
lllomh
阅读(70)
推荐(0)