vuejs2

    0熱度

    1回答

    在我Vue2的應用程序,我執行POST請求與愛可信: window.axios.post(`/clients/${this.getClientId}/connection`, { clientType: newClientType, url: this.client.url, username: this.client.username,

    0熱度

    1回答

    我使用來自here和here的hackernews方法設置vuex和SSR,並且它都能正常工作。 app.js: // Expose a factory function that creates a fresh set of store, router, // app instances on each call (which is called for each SSR request)

    0熱度

    2回答

    在vueJS中,我有一個<table>。如果我點擊一個按鈕,一個新行將被插入使用 this.rows.push({ title: '', price: '' }); 問題的表是我使用這個功能: $(".price").numeric({ decimal: false, negative: false }); 這是一個j

    0熱度

    2回答

    我想爲我的孩子路線定義一個beforeEnter後衛,但我沒有成功。這裏是我的路由配置: ... { path: '/', component: App beforeEnter: (to, from, next) -> # This block is only reached when I refresh the page child

    1熱度

    1回答

    import Vue from 'vue' import Vuex from 'vuex' import Users from './modules/Users' Vue.use(Vuex) export const store = new Vuex.Store({ namespaced: true, state: { foo: false,

    1熱度

    4回答

    元素我有一個表,看起來像這樣: <table class="table"> <thead> <tr> <td><strong>Title</strong></td> <td><strong>Job</strong></td> <td></td> </tr> </thead> <tbody> <tr v-

    0熱度

    3回答

    我VUE成分是這樣的: <template> ... <ul class="list-unstyled"> <li v-for="category in categories"> ... <input type="checkbox" :value="category.id" :checked="category.id in_ar

    0熱度

    1回答

    我使用vue-cli創建了Vue 2.5.2應用程序。 我試圖建立其自身的作品在我的第一個組件(<jsontree />),但我無法弄清楚如何註冊的另一個組件使用(<HelloWorld>) 這是錯誤消息我收到: [Vue warn]: Unknown custom element: <jsontree> - did you register the component correctly? Fo

    0熱度

    1回答

    一個按鈕應該可以下載即時生成的PDF文件。 PDF由API正確生成,由客戶端代碼處理的文件已損壞,並且不會打開。 的工藝流程: 按鈕被點擊 exportDataAsPDFAction被觸發 POST請求被構建和執行 響應包含原始PDF文件 文件下載是由以下啓動回調邏輯: this.exportDataAsPDFAction({ gridKey: this.grid.Key, c

    1熱度

    2回答

    嗨,大家好,我不太知道如何做到這一點,我很新的Vue公司,我怎麼可以把我的數據從NewDeal組件DealsTable組件?正如你可以看到NewDeal有兩個父組件。我讀過$ emit和$ on,但只想確認是否真的需要這樣做,如newDeal -> QuickActions -> SideBar?如果我所想的是正確的,我不知道該怎麼走。我希望你能給我一些啓示。 我試過從NewDeal組件發出一個事