配置修改
This commit is contained in:
parent
8670a0e655
commit
225bd76543
|
@ -45,6 +45,7 @@
|
||||||
"intro.js": "^7.2.0",
|
"intro.js": "^7.2.0",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"lodash.get": "^4.4.2",
|
"lodash.get": "^4.4.2",
|
||||||
|
"marked": "^12.0.0",
|
||||||
"md5": "^2.3.0",
|
"md5": "^2.3.0",
|
||||||
"mockjs": "^1.1.0",
|
"mockjs": "^1.1.0",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
|
|
|
@ -77,6 +77,9 @@ dependencies:
|
||||||
lodash.get:
|
lodash.get:
|
||||||
specifier: ^4.4.2
|
specifier: ^4.4.2
|
||||||
version: 4.4.2
|
version: 4.4.2
|
||||||
|
marked:
|
||||||
|
specifier: ^12.0.0
|
||||||
|
version: 12.0.2
|
||||||
md5:
|
md5:
|
||||||
specifier: ^2.3.0
|
specifier: ^2.3.0
|
||||||
version: 2.3.0
|
version: 2.3.0
|
||||||
|
@ -7730,6 +7733,12 @@ packages:
|
||||||
object-visit: 1.0.1
|
object-visit: 1.0.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/marked@12.0.2:
|
||||||
|
resolution: {integrity: sha512-qXUm7e/YKFoqFPYPa3Ukg9xlI5cyAtGmyEIzMfW//m6kXwCy2Ps9DYf5ioijFKQ8qyuscrHoY04iJGctu2Kg0Q==}
|
||||||
|
engines: {node: '>= 18'}
|
||||||
|
hasBin: true
|
||||||
|
dev: false
|
||||||
|
|
||||||
/mathml-tag-names@2.1.3:
|
/mathml-tag-names@2.1.3:
|
||||||
resolution: {integrity: sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==}
|
resolution: {integrity: sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
|
@ -15,7 +15,7 @@ export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/:path(.*)*',
|
path: '/:path(.*)*',
|
||||||
name: PAGE_NOT_FOUND_NAME,
|
name: 'ChildPageNotFound',
|
||||||
component: EXCEPTION_COMPONENT,
|
component: EXCEPTION_COMPONENT,
|
||||||
meta: {
|
meta: {
|
||||||
title: 'ErrorPage',
|
title: 'ErrorPage',
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<a-cascader v-model:value="collegeMajor" :options="collegeMajorOptions" change-on-select />
|
<a-cascader v-model:value="collegeMajor" :options="collegeMajorOptions" change-on-select />
|
||||||
<a-button style="margin-left: 10px" type="primary" @click="query">查询</a-button>
|
<a-button style="margin-left: 10px" type="primary" @click="query">查询</a-button>
|
||||||
<a-button style="margin-left: 10px" :loading="aiLoading" v-show="resultData != null" type="primary" @click="getAI">分析</a-button>
|
<a-button style="margin-left: 10px" :loading="aiLoading" v-show="resultData != null" type="primary"
|
||||||
|
@click="getAI">分析</a-button>
|
||||||
<!-- <a-button @click=test()>test</a-button> -->
|
<!-- <a-button @click=test()>test</a-button> -->
|
||||||
</template>
|
</template>
|
||||||
<a-row :gutter="12">
|
<a-row :gutter="12">
|
||||||
|
@ -23,7 +24,7 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-card style="margin-bottom: 10px" class="tip">
|
<a-card style="margin-bottom: 10px" class="tip">
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<div> {{ aiMessage }} </div>
|
<div v-html="aiMessage"></div>
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
<!-- <div style="height: 300px;">
|
<!-- <div style="height: 300px;">
|
||||||
|
@ -34,11 +35,12 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { defHttp } from '/@/utils/http/axios';
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
import * as echarts from 'echarts';
|
import * as echarts from 'echarts';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
import { marked } from 'marked';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
@ -324,6 +326,7 @@
|
||||||
reasoning: assistantResponse.reasoning_content || '', // 如果有思考过程
|
reasoning: assistantResponse.reasoning_content || '', // 如果有思考过程
|
||||||
};
|
};
|
||||||
this.aiMessage = assistantMessage.content;
|
this.aiMessage = assistantMessage.content;
|
||||||
|
this.aiMessage = marked(this.aiMessage);
|
||||||
console.log(assistantMessage);
|
console.log(assistantMessage);
|
||||||
},
|
},
|
||||||
drawResChart(piedata) {
|
drawResChart(piedata) {
|
||||||
|
@ -565,21 +568,21 @@
|
||||||
myChart.setOption(option);
|
myChart.setOption(option);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 34px;
|
font-size: 34px;
|
||||||
color: rgb(8, 8, 8);
|
color: rgb(8, 8, 8);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="welcome-container">
|
<div class="welcome-container">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h1>🎉 欢迎使用哈尔滨师范大学四六级管理平台</h1>
|
<h1>🎉 欢迎使用哈尔滨师范大学英语四六级综合管理平台</h1>
|
||||||
<!--<p class="description"> 这是一个基于 Vue 3 构建的现代化前端项目,助你快速开启开发之旅。 </p>-->
|
<!--<p class="description"> 这是一个基于 Vue 3 构建的现代化前端项目,助你快速开启开发之旅。 </p>-->
|
||||||
|
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'welcomeInterface',
|
name: 'welcomeInterface',
|
||||||
components: {
|
components: {
|
||||||
// 可引入你其他组件,例如:DownOutlined, RightOutlined, Tour
|
// 可引入你其他组件,例如:DownOutlined, RightOutlined, Tour
|
||||||
|
@ -37,11 +37,11 @@
|
||||||
this.$router.push('/home'); // 或使用 window.location.href
|
this.$router.push('/home'); // 或使用 window.location.href
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.welcome-container {
|
.welcome-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 92vh;
|
min-height: 92vh;
|
||||||
|
@ -50,30 +50,30 @@
|
||||||
background: linear-gradient(145deg, #f0f4ff, #ffffff);
|
background: linear-gradient(145deg, #f0f4ff, #ffffff);
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
font-family: 'Segoe UI', sans-serif;
|
font-family: 'Segoe UI', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 3rem;
|
padding: 3rem;
|
||||||
border-radius: 1.5rem;
|
border-radius: 1.5rem;
|
||||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
||||||
max-width: 800px;
|
max-width: 1000px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card h1 {
|
.card h1 {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
color: #555;
|
color: #555;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions button {
|
.actions button {
|
||||||
margin: 0 0.5rem;
|
margin: 0 0.5rem;
|
||||||
padding: 0.8rem 1.5rem;
|
padding: 0.8rem 1.5rem;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
@ -83,15 +83,15 @@
|
||||||
color: white;
|
color: white;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.3s ease;
|
transition: background-color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions button:hover {
|
.actions button:hover {
|
||||||
background-color: #339e6b;
|
background-color: #339e6b;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue