瀏覽代碼

Update app.js

Daniel Supernault 6 年之前
父節點
當前提交
5a1aba18bc
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      resources/assets/js/app.js

+ 7 - 1
resources/assets/js/app.js

@@ -11,5 +11,11 @@ let token = document.head.querySelector('meta[name="csrf-token"]');
 if (token) {
     window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
 } else {
-    console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
+    console.error('CSRF token not found.');
 }
+
+window.App = {};
+
+window.App.boot = function() {
+	new Vue({ el: '#content'});
+}