nuxt整合mavon-editor(markdown富文本编辑器)
摘要:1、npm i -S mavon-editor 2、plugins新建mavon-editor.js import Vue from 'vue' import mavonEditor from 'mavon-editor' Vue.use(mavonEditor) 3、配置nuxt.config.j
阅读全文
nuxt服务端操作cookie
摘要:1、npm i -S cookie-universal-nuxt 2、nuxt.config.js modules: [ 'cookie-universal-nuxt' ] 3、使用 * 服务端(store/index.js) const actions = { // nuxt提供的,每次刷新页面都
阅读全文
nuxt配置环境变量
摘要:1、npm i -D cross-env 2、配置package.json "scripts": { "dev": "cross-env NODE_ENV=dev nuxt", "build": "nuxt build", "start": "cross-env NODE_ENV=prod nuxt
阅读全文
OAuth2单点登录知识点
摘要:###一、前端 #####1、前端知识点 登录并重定向 /?redirectURL= 退出并重定向 /logout?redirectURL= 刷新令牌并重定向 /refresh?redirectURL= 登录及刷新令牌接口,需提供OAuth2认证所需的客户端id及密码 url组成 协议://主机名.
阅读全文
nuxt整合element-ui
摘要:1、npm i -S element-ui 2、新建element-ui插件 import Vue from 'vue' import ElementUI from 'element-ui' Vue.use(ElementUI) 3、配置nuxt.config.js css: [ 'element-
阅读全文
nuxt知识点
摘要:1、nuxt.config.js * server: { port: '3000',//服务端口号 host: '0.0.0.0' } * 全局的配置文件 2、layouts * 默认default,自定义组件不会省略index * 路由组件标签<nuxt/> * layout() {//使用自定义
阅读全文
canvas图层添加拖拽事件
摘要:<template> <div style="height: 100%;text-align: center"> <canvas id="cvs" width="600" height="600"></canvas> </div> </template> <script> export defaul
阅读全文
监听属性改变defineProperty和文档碎片createDocumentFragment
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>ll</title> </head> <body> <div id="el"> <div>xxx</div> <div>yyy</div> </div> <sc
阅读全文