From 0769663fe04368f1bfc17ad04ebf4db972ee9524 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E7=82=AB=E5=A5=BD?= <143517814@qq.com>
Date: Tue, 17 Dec 2024 09:00:23 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BA=86=E5=85=A8=E9=83=A8?=
=?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=96=87=E4=BB=B6=E5=8C=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/.travis.yml | 8 ++-
frontend/babel.config.js | 6 ++-
frontend/src/main.js | 9 +++-
frontend/src/views/404.vue | 3 ++
frontend/src/views/Home.vue | 9 +++-
frontend/src/views/list/ExamCardList.vue | 19 +++++++
frontend/src/views/list/QuestionTableList.vue | 50 +++++++++++++------
.../src/views/list/modules/CreateForm.vue | 13 +++++
.../src/views/list/modules/ExamEditModal.vue | 21 +++++---
.../views/list/modules/QuestionEditModal.vue | 2 +
.../list/modules/StepByStepExamModal.vue | 21 +++++++-
.../views/list/modules/StepByStepModal.vue | 31 +++++++++++-
.../list/modules/StepByStepQuestionModal.vue | 14 +++++-
.../list/modules/SummernoteUpdateModal.vue | 23 ++++++---
.../views/list/modules/UpdateAvatarModal.vue | 7 ++-
.../src/views/test/BootStrapTableDemo.vue | 36 +++++++++----
frontend/src/views/test/SummerNoteDemo.vue | 18 +++++++
frontend/src/views/user/Login.vue | 49 ++++++++++++++----
frontend/src/views/user/Register.vue | 32 ++++++++++++
frontend/src/views/user/RegisterResult.vue | 9 ++++
frontend/vue.config.js | 22 ++++++--
21 files changed, 342 insertions(+), 60 deletions(-)
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 @@
+
+
+
-