vue-router

    0熱度

    1回答

    以我的第一次刺Vue2和卡住路線。 基本上,當我加入<router-view></router-view>到index.html的我開始收到異常: [Vue warn]: Failed to mount component: template or render function not defined. found in ---> <Anonymous> <Root>

    0熱度

    1回答

    我遇到了這個問題,我不能使用next('/login')。這是我的代碼: */ all imports that are needed Vue.use(Router); const routes = [ {path: '/', component: Home}, {path: '/admin', component: Admin}, {path: '/login', componen

    1熱度

    1回答

    我正在使用VueJS路由器,但路由器沒有加載組件。 我有About.vue和Contact.vue只是標籤測試 - 下面是它的樣子: <template> <div> <h1>Contact page. Welcome baby!</h1> </div> </template> 這是App.vue有三個路由器鏈路和路由器 - 視圖。 <template>

    0熱度

    2回答

    我已經部署了一個VueJS項目域像www.example.com/demos/app, 但是,當我從愛可信它指向www.example.com/login,而不是www.example.com/demos/app/login 請求發送到API,這是一個使用axios export const login = ({ dispatch }, { payload, context }) => {

    2熱度

    1回答

    我正在嘗試開發SPA。我在安裝Vue-cli時安裝了Vue路由器。我main.js文件就像下面 import Vue from 'vue' import App from './App' import Router from './router' import VueResource from 'vue-resource' import Auth from './packages/auth

    0熱度

    1回答

    在Vue2中,我的組件中有以下字符串。 <template> <div><h1>Hello World</h1> <div v-html="testString"></div> </div> </template> <script> export default { name: "test-component", props: [

    0熱度

    4回答

    我試圖在VUE簡單的列表示例(待辦事項列表)。在這裏我想補充大寫的過濾器(換句話說,就是所有字母都大寫)。但它顯示是我錯誤 這裏是我的代碼 https://plnkr.co/edit/THtaYSnGkBp7BlMYcNUl?p=preview var app = new Vue({ el: '#App', data: { message: '', it

    0熱度

    2回答

    我在Vue.js中創建一個自定義組件。在我的組件中,我有一個列表,其中包含一個刪除按鈕。單擊一個按鈕時,它將刪除該行。如果單擊任何行,它將刪除最後一行,因爲索引爲什麼總是-1? 這裏是我下面整個代碼代碼 https://plnkr.co/edit/hVQKk3Wl9DF3aNx0hs88?p=preview methods: { deleteTodo:function (item) {

    0熱度

    2回答

    能否請你告訴我如何在vue js中使用手錶功能。我嘗試過使用,但是我得到了這個錯誤。 vue.js:485 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or co

    0熱度

    2回答

    請問如何在VUE js中的組件之間共享數據(創建列表時)。我有兩個組件list components和add todo component。我想添加項目在名單上的時候。但add button問題用戶點擊存在於不同的組件和列表輸入字段出現在不同的分量 這裏是我的代碼 https://plnkr.co/edit/bjsVWU6lrWdp2a2CjamQ?p=preview //代碼放在這裏 var M