https搭建 Let’s Encrypt
Let’s Encrypt
curl https://get.acme.sh | sh
acme.sh –issue -d zhongguomayun.com -d www.zhongguomayun.com -d api.zhongguomayun.com -d static.zhongguomayun.com -d m.zhongguomayun.com -w /code/coding/zhongguomayun/public
其实我一直在你身边
Let’s Encrypt
curl https://get.acme.sh | sh
acme.sh –issue -d zhongguomayun.com -d www.zhongguomayun.com -d api.zhongguomayun.com -d static.zhongguomayun.com -d m.zhongguomayun.com -w /code/coding/zhongguomayun/public
router.beforeEach((to,from,next)
to.meta.requireAuth
使用router-link页面不刷新
npm install vue-router
import VueRouter from ‘vue-router’
Vue.use(VueRouter)
beforeCreate
created
beforeMount
mounted
props:{
users:{
‘type’:Array,
required:true
}
import Users from ‘./components/Users’
Vue.component(“users”,”Users”)
vue init webpack my-project
npm install
npm run dev
当在location区块中使用 if 指令的时候会有一些问题, 在某些情况下它并不按照你的预期运行而是做一些完全不同的事情. 而在另一些情况下他甚至会出现段错误. 一般来说避免使用 if 指令是个好主意.
如果报错No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://xxx.com’ is therefore not allowed access. 说明服务器端不支持跨域