配置修改
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;">
|
||||||
|
@ -37,6 +38,7 @@
|
||||||
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() {
|
||||||
|
@ -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) {
|
||||||
|
|
|
@ -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">
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue