分类为 Vue.js 的文章:
配置内容 单引号、末尾分号、关闭了“Rplace ..⏎ with”(有谁知道如何开启并统一格式化工具吗)。 VSCode 配置 "editor.rulers": [80, 120], // 缩进栏线 "editor.tabSize": 2, "editor.insertSpaces": true, "editor.formatOnPaste": true, "editor.formatOnSave": false, "editor.renderWhitespace": "all", // 显示空格 "emmet.triggerE...
2019/10/31 浏览数(1,172) 分类(Vue.js)
// vue.config.js / webpack.config.js / config/index.js module.exports = { devServer: { proxy: { // 所有 websocket 接口地址加 /websocket 前缀,例:ws://localhost:8080/websocket/dashboard -> wss://notice.app.upall.cn/dashboard '/websocket': { target: 'wss://notice.app.upall.cn', ws: true, secure: false, logLevel: 'debug', pa...
2019/08/8 浏览数(1,049) 分类(Vue.js)
插件 // ctrl+p ext install MS-CEINTL.vscode-language-pack-zh-hans ext install ms-vscode.sublime-keybindings ext install lixquid.calculator 快捷键 // keybindings.json // Place your key bindings in this file to override the defaultsauto[] [ { "key": "alt+w", // 用标签包裹选中的文字 "command": "editor.emmet.action.wrapWithAbbreviation"...
2019/03/12 浏览数(2,100) 分类(Vue.js)
在项目中调用版本号和git信息 Vue Cli 3 第一步:创建 /vue.config.js,内容如下: const packageInfo = require('./package.json'); const fs = require('fs'); const gitHEAD = fs.readFileSync('.git/HEAD', 'utf-8').trim(); // ref: refs/heads/feature/xxx const ref = gitHEAD.split(': ')[1]; // refs/heads/feature/xxx const branch = gitHEAD.split('/').slice(2).join('/'); // feature/xxx const commitI...
2019/03/2 浏览数(1,229) 分类(Vue.js)
Vue项目采用整站部署,不使用接口所在站点的二级目录或一级目录 目录结构 /webroot/ ├─ api.app.com/ │ ├─ public_html/ │ │ ├─ uploads/ │ │ └─ web.conf │ ├─ certs/ │ ├─ logs/ │ └─ rebots.txt └─ wechat.app.com/   ├─ public_html/   │ ├─ uploads/ <-- link   │ └─ index.html   ├─ certs/   ├─ logs/   └─ rebots.txt webpack dev server...
2018/12/7 浏览数(728) 分类(Apache, Nginx, Vue.js, Windows)
npm: vue-puzzle-vcode 纯前端校验。 用法 <template> <Vcode :show="verificationVisible" @success="sendVCode" @close="verificationVisible = false" /> </template> <script> import Vcode from 'vue-puzzle-vcode'; export default { components: { Vcode, }, data() { return { verificationVisible: false, ...
2011/09/8 浏览数(1,978) 分类(Vue.js)
点击返回顶部
  1. 留言
  2. 联系方式