vuejs2

    1熱度

    1回答

    在我的配置/ index.js,在構建部分,我有一個從內node_modules進口應該再一個主題模板來 assetsSubDirectory: 'static', assetsPublicPath: '/path/to/subdirectory/', 我的靜態字體查看root/path/to /子目錄/ static/fonts/some-fonts.woff。它是否正確? 然而,在我的生

    0熱度

    2回答

    我對Webpack和Vue.js相當陌生。 我們知道vue-cli帶有2個項目模板webpack和webpack-simple。 當我使用webpack模板,如果我想使用其他的包像Bootstrap 4 beta,我只需要做: 在main.js: import 'jquery' import 'bootstrap/dist/css/bootstrap.css' import 'bootstra

    0熱度

    1回答

    我使用VueJs創建了一個小示例應用程序,並創建了一個C#REST API來存儲和檢索SQL Server後端中的數據。 爲了測試,我創建了一個帶有表單的簡單網頁來創建一個「註釋」。 saveData() { let promiseStack = []; var jsondata = JSON.stringify(this.note); promis

    5熱度

    1回答

    在我的應用程序中,在我的路由器使用的導航守衛中,我有一個vuex名稱空間getter來檢查身份驗證狀態。如果用戶已通過身份驗證,則getter會執行魔法底層檢查。 我想編寫一個簡單的單元測試,檢查重定向是否根據已認證的狀態完成。我被扼殺了吸氣者。 我消氣如下: isAuthenticated (state) { return state.token !== null } 我的認證模

    0熱度

    1回答

    的:selected丙不Vue2選擇目標option當我使用v-model爲select: 模板 ... <select v-model="form.item"> <option :value="item.id" v-for="(item, index) in items" :selected="item.status == 2">{{ item.name }}</option> <

    0熱度

    1回答

    我使用vue2谷歌地圖組件在Vue他們是workng罰款。 但如果我嘗試在數據返回谷歌創建對象或計算像 new google.maps.Point(20,40) 有 ReferenceError: google is not defined at VueComponent.data (app.js:sourcemap:69896) at getData (app.js:sourcemap:65

    1熱度

    1回答

    我的應用程序中的所有內容都工作得很好,直到我開始添加我的JavaScript。現在我不斷在控制檯中發現錯誤。 我得到這個錯誤: Property or method "show" is not defined on the instance but referenced during render. Make sure that this property is reactive, either

    0熱度

    1回答

    我試圖用typescript 2.5.3將vue js升級到2.5.2。 這裏是我的index.ts文件: import Vue from 'vue' var app = new Vue({ el: '#app', data: { message: 'Hello Vue!' } }) 這裏是我的tsconfig.json { "comp

    0熱度

    1回答

    我已開始整合vue-video-player。玩家的渲染寬度只有100px。我不知道爲什麼或如何改變它。 我一直沒能在文檔中找到任何東西。事實上,包含css文件有點令人困惑,我不確定我的導入(與文檔中的require)是否正確。 如何設置播放器的寬度? <template> <div> <video-player ref="videoPlayer"

    0熱度

    1回答

    以下代碼會產生錯誤。我想有一個有關接收事件的條件呈現。我在main.js window.eventBus = new Vue({}) ,並在某處代碼EventBus: window.eventBus.$emit('change-visibility', true) 我希望觸發下的Vue組件的可見性: <template> <div> <div v-if="viz.is