this.$axios({ method:'post', url:'api/sign-up', responseType:'json', data:{ user:this.modelRegist.user, password:this.modelRegist.password, rePassword:this.modelRegist.repeatPassword }, timeout:5000, }).then( (response) =>{
<v-img :src="require('../../assets/logo.png')" />
https://cloud.tencent.com/developer/news/119838javascript
npm run buildvue
修改 /usr/local/nginx/conf 目錄下找到的 nginx.conf 文件java
location 的位置改一下,定位到dist就能夠了ios
item-key = "name"nginx
path:'',name:Cloud,component:Cloud,alias:'cloud' path 和 alias的問題
var signState ={ isSign:false }; Vue.prototype.$axios = axios; //全局註冊,使用方法爲:this.$axios Vue.prototype.$signState = signState; // axios.defaults.baseURL = 'http://106.52.138.50/'; axios.defaults.baseURL = 'http://10.203.248.251:8000/'; new Vue({ render: h => h(App),vuetify,router }).$mount('#app');
Vue.use(Router)
以前async awaitvue-router
axios then方法異步vuex
Object.assign
通常用於修改現有的條目npm
getters函數使用不能有括號json
每次建立手動清除事件,箭頭函數axios
created() { this.$bus.$off("onAvatarClicked"); }, mounted() { this.$bus.$on("onAvatarClicked",()=>{ this.openThemeSettings(); }) }
withCredentials:true, contentType:"multipart/form-data",
@submit.native.prevent 在表單處使用