06 2020 档案

摘要:1、在 router.js 里面 添加 路由拦截内容: router.beforeEach((to,from,next)=>{ if(to.path '/login'){ next(); }else { let token = localStorage.getItem('userInfo'); if 阅读全文
posted @ 2020-06-18 14:11 秃头的铲屎官 阅读(1002) 评论(0) 推荐(0) 编辑
摘要:如果你的代码已经由Git跟踪,然后设置这个仓库作为你的“origin”推送。 cd existing-project git remote set-url origin 仓库地址 git push -u origin --all git push origin --tags 阅读全文
posted @ 2020-06-09 09:45 秃头的铲屎官 阅读(1083) 评论(0) 推荐(0) 编辑
摘要:示例: 监听一下对象 formCode 中 属性 application 的变化: <script> export default{ data(){ return{ formCode:{ application:"", oldcode:"", newcode:"" } } } } </script> 阅读全文
posted @ 2020-06-08 13:50 秃头的铲屎官 阅读(9565) 评论(0) 推荐(0) 编辑
摘要:let mysql = require('mysql'); let express = require('express'); let app = express(); let connection = mysql.createConnection({ host:"localhost", user: 阅读全文
posted @ 2020-06-08 11:15 秃头的铲屎官 阅读(949) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示