我有一個Vuejs應用程序,允許用戶註冊併成爲會員。 我加了vuex
來存儲與進程成功/失敗相關的消息。不能在鏈接中插入vue-router標籤
目前一切正常,只是當我嘗試連接存儲和顯示[VUE路由器]這樣的變量中:
...
Registration() {
if(true) {
this.$store.commit('SET_MESSAGE', {
type: 'success',
title: 'Registration Success',
content: 'please click <router-link to="/profile"> here </router-link> to see your profile'
}
}
現在,我可以檢索所有屬性並顯示出來,但<router-link to="/profile"> here </router-link>
標記不會像它應該那樣轉換(或功能)。
這是怎麼了顯示它。
<div class="alert alert-dismissible" :class="'alert-' +type" >
<h1> {{tilte}} </h1>
<p> {{content}} </p>
</div>
我<p v-bind:html='content'></p>
和{{{ content }}}
路線試圖在任何情況下不工作
這是不行的,路由器鏈路實際上將不會編譯 –
調查有關 – Vanojx1
呃..我的意思,而不是V-HTML v-text ...無論如何,這是行不通的。也許這是一個錯誤 – hidar