摘要: Vue中常用的公共函数 独立文件 jsencrypt.js 作用:加密/解密 npm install jsencrypt import JSEncrypt from 'jsencrypt/bin/jsencrypt.min' // 密钥对生成 http://web.chacuo.net/netrsa 阅读全文
posted @ 2024-05-07 17:32 相遇就是有缘 阅读(49) 评论(0) 推荐(0)
摘要: 局部引入 优点:减小项目体积。 第一步:安装babel-plugin-component npm install babel-plugin-component -D 第二步:修改babel.config.js文件 module.exports = { presets: [ ["@babel/pres 阅读全文
posted @ 2024-05-07 17:24 相遇就是有缘 阅读(142) 评论(0) 推荐(0)
摘要: watch:{ $route(to,from){ console.log(to.path); } } watch: { '$route':'getPath' }, methods: { getPath(){ console.log(this.$route.path); } } watch: { $r 阅读全文
posted @ 2024-05-07 08:55 相遇就是有缘 阅读(139) 评论(0) 推荐(0)