Skip to content

Commit 447c63c

Browse files
author
王艺琏
committed
new
1 parent 69aa4e2 commit 447c63c

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

backend/app/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
def create_app(config_name='development'):
1414
app = Flask(__name__)
1515
app.config.from_object(config[config_name])
16-
16+
1717
# 初始化扩展
1818
db.init_app(app)
1919
migrate.init_app(app, db)
2020
jwt.init_app(app)
2121

2222
# 启用CORS,允许所有源
2323
CORS(app, supports_credentials=True)
24-
24+
2525
# 注册蓝图
2626
from .routes.auth import auth_bp
2727
from .routes.resume import resume_bp
@@ -34,5 +34,5 @@ def create_app(config_name='development'):
3434
app.register_blueprint(job_bp, url_prefix='/api/job')
3535
app.register_blueprint(interview_bp, url_prefix='/api/interview')
3636
app.register_blueprint(user_bp, url_prefix='/api/user')
37-
37+
3838
return app

backend/app/routes/auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def register():
100100
return jsonify({
101101
'success': False,
102102
'message': '邀请码无效'
103-
}), 400
103+
}), 400
104104

105105
# 创建新用户
106106
user = User(
@@ -147,8 +147,8 @@ def get_profile():
147147
'message': '用户不存在'
148148
}), 404
149149

150-
return jsonify({
151-
'success': True,
150+
return jsonify({
151+
'success': True,
152152
'user': user.to_dict()
153153
})
154154

backend/app/services/interview/interview_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def add_answer(self, interview_id: str, question_id: str, answer: str) -> Dict[s
245245
'answer': answer,
246246
'time': datetime.now()
247247
})
248-
248+
249249
# 生成评估结果(这里是模拟的评估逻辑,实际应该调用AI模型)
250250
evaluation = {
251251
'overall_score': 85,

frontend/src/views/auth/Login.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
class="text-blue-600 hover:text-blue-800"
6161
@click="showForgotPassword = true"
6262
>
63-
忘记密码?
63+
忘记密码?
6464
</el-button>
65-
</div>
65+
</div>
6666

6767
<el-form-item class="mt-10">
6868
<el-button
@@ -126,7 +126,7 @@
126126
>
127127
忘记密码?
128128
</el-button>
129-
</div>
129+
</div>
130130

131131
<el-form-item class="mt-10">
132132
<el-button
@@ -191,7 +191,7 @@
191191
<el-button type="primary" @click="handleForgotPassword" :loading="forgotLoading">
192192
确认
193193
</el-button>
194-
</div>
194+
</div>
195195
</template>
196196
</el-dialog>
197197

@@ -273,7 +273,7 @@ const forgotRules = {
273273
274274
const handleLogin = async () => {
275275
if (!loginFormRef.value) return
276-
276+
277277
try {
278278
await loginFormRef.value.validate()
279279
@@ -290,13 +290,13 @@ const handleLogin = async () => {
290290
})
291291
292292
if (response.data.success) {
293-
// 保存登录信息
293+
// 保存登录信息
294294
localStorage.setItem('token', response.data.access_token)
295295
localStorage.setItem('user', JSON.stringify(response.data.user))
296296
297297
ElMessage.success('登录成功')
298298
if (response.data.user.role === 'candidate') {
299-
router.push('/candidate/home')
299+
router.push('/candidate/home')
300300
} else {
301301
router.push('/interviewer/home')
302302
}

frontend/src/views/interviewer/InterviewCreate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<div class="flex items-center">
9797
<span>{{ candidate.name }}</span>
9898
<span class="text-gray-500 ml-2">({{ candidate.experience }}年经验)</span>
99-
</div>
99+
</div>
100100
</el-option>
101101
</el-select>
102102
</el-form-item>

frontend/src/views/interviewer/InterviewPage.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
<div class="font-medium">{{ edu.school }}</div>
8585
<div class="text-gray-500">
8686
{{ edu.major }} | {{ edu.degree }} | {{ edu.time }}
87-
</div>
88-
</div>
87+
</div>
88+
</div>
8989
</el-descriptions-item>
9090
<el-descriptions-item label="工作经历" :span="2">
9191
<div v-for="work in candidate.workExperience" :key="work.company" class="mb-2">
@@ -106,7 +106,7 @@
106106
<el-button type="primary" @click="handleSaveEvaluation" v-if="!interview.evaluation">
107107
提交评估
108108
</el-button>
109-
</div>
109+
</div>
110110

111111
<template v-if="interview.evaluation">
112112
<el-descriptions :column="2" border>
@@ -276,7 +276,7 @@ const candidate = ref({
276276
description: '参与公司电商项目的开发,负责页面开发和性能优化。'
277277
}
278278
]
279-
})
279+
})
280280
281281
// 评估表单
282282
const evaluationForm = ref({

frontend/src/views/interviewer/InterviewSchedule.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<el-button type="primary" @click="$router.push('/interviewer/create')">
1212
<el-icon><Plus /></el-icon>创建面试
1313
</el-button>
14-
</div>
1514
</div>
15+
</div>
1616

1717
<!-- 列表视图 -->
1818
<template v-if="viewType === 'list'">
@@ -31,7 +31,7 @@
3131
{{ row.candidate.charAt(0) }}
3232
</el-avatar>
3333
{{ row.candidate }}
34-
</div>
34+
</div>
3535
</template>
3636
</el-table-column>
3737
<el-table-column prop="position" label="面试职位" />
@@ -90,7 +90,7 @@
9090
{{ row.candidate.charAt(0) }}
9191
</el-avatar>
9292
{{ row.candidate }}
93-
</div>
93+
</div>
9494
</template>
9595
</el-table-column>
9696
<el-table-column prop="position" label="面试职位" />
@@ -145,7 +145,7 @@
145145
<el-tag size="small" type="success">
146146
{{ getInterviewCount(data.day) }}场面试
147147
</el-tag>
148-
</div>
148+
</div>
149149
</div>
150150
</template>
151151
</el-calendar>

0 commit comments

Comments
 (0)