diff --git a/frontend/.travis.yml b/frontend/.travis.yml
index a08bfcb..b4687d8 100644
--- a/frontend/.travis.yml
+++ b/frontend/.travis.yml
@@ -1,7 +1,13 @@
+# 定义语言为node_js
language: node_js
+# 定义node_js版本为10.15.0
node_js:
- 10.15.0
+# 缓存yarn
cache: yarn
+# 定义脚本
script:
+ # 运行yarn
- yarn
- - yarn run lint --no-fix && yarn run build
+ # 运行yarn run lint --no-fix && yarn run build
+ - yarn run lint --no-fix && yarn run build
\ No newline at end of file
diff --git a/frontend/babel.config.js b/frontend/babel.config.js
index 60d219e..e7fcae9 100644
--- a/frontend/babel.config.js
+++ b/frontend/babel.config.js
@@ -1,6 +1,9 @@
+// 导出一个对象,用于配置Babel
module.exports = {
+ // 使用@vue/app预设
presets: [
'@vue/app',
+ // 使用@babel/preset-env预设,并设置useBuiltIns为entry
[
'@babel/preset-env',
{
@@ -8,9 +11,10 @@ module.exports = {
}
]
]
- // if your use import on Demand, Use this code
+ // 如果你的项目中使用了按需加载,可以使用以下代码
// ,
// plugins: [
+ // // 使用import插件,配置ant-design-vue库的路径和样式
// [ 'import', {
// 'libraryName': 'ant-design-vue',
// 'libraryDirectory': 'es',
diff --git a/frontend/src/main.js b/frontend/src/main.js
index 4d508bb..3884347 100644
--- a/frontend/src/main.js
+++ b/frontend/src/main.js
@@ -11,16 +11,23 @@ import bootstrap from './core/bootstrap'
import './core/use'
import './permission' // permission control
import './utils/filter' // global filter
+import './utils/directive' // 全局指令
+// 设置Vue的生产提示为false
Vue.config.productionTip = false
-// mount axios Vue.$http and this.$http
+// 挂载axios Vue.$http和this.$http
Vue.use(VueAxios)
+// 创建Vue实例
new Vue({
+ // 路由
router,
+ // 状态管理
store,
+ // 创建时调用bootstrap函数
created () {
bootstrap()
},
+ // 渲染App组件
render: h => h(App)
}).$mount('#app')
diff --git a/frontend/src/views/404.vue b/frontend/src/views/404.vue
index 8c1d8a1..16a3a69 100644
--- a/frontend/src/views/404.vue
+++ b/frontend/src/views/404.vue
@@ -1,11 +1,14 @@
+
404 page
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue
index c7eeac6..079c4ae 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home.vue
@@ -1,17 +1,24 @@
+
+
+
-