|
2 weeks ago | |
---|---|---|
cypress | 2 years ago | |
docs | 3 years ago | |
public | 1 month ago | |
src | 2 weeks ago | |
vetur | 4 years ago | |
.editorconfig | 3 years ago | |
.env.development | 1 month ago | |
.eslintrc.js | 2 years ago | |
.gitignore | 1 month ago | |
.npmrc | 2 years ago | |
README.md | 1 month ago | |
cypress.config.ts | 2 years ago | |
index.html | 3 years ago | |
package-lock.json | 6 months ago | |
package.json | 1 month ago | |
pnpm-lock.yaml | 1 month ago | |
postcss.config.js | 4 years ago | |
prebuild.mjs | 2 years ago | |
prettier.config.js | 3 years ago | |
tailwind.config.js | 3 years ago | |
tsconfig.json | 2 years ago | |
vetur.config.js | 4 years ago | |
vite.config.ts | 1 month ago |
This template should help get you started developing with Vue 3 and Typescript in Vite.
VSCode + Vetur. Make sure to enable vetur.experimental.templateInterpolationService
in settings!
<script setup>
<script setup>
is a feature that is currently in RFC stage. To get proper IDE support for the syntax, use Volar instead of Vetur (and disable Vetur).
.vue
Imports in TSSince TypeScript cannot handle type information for .vue
imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue
imports (for example to get props validation when using manual h(...)
calls), you can use the following:
Run Volar: Switch TS Plugin on/off
from VSCode command palette.
主要分为:CommonMarkBody.vue 前端切片渲染的组件,凡是评卷任务类型的都可以复用它来渲染(包含轨迹)。
src/features/student/studentInspect/MarkBody.vue 整卷渲染的组件,凡是不用前端切分的试卷都可以复用它来渲染(包含轨迹)。
以上组件的 reactivity 比较复杂,总结如下:
启动本项目:
# 安装依赖
npm install
# 启动
npm start
配置 nginx:
# 云阅卷开发
server {
listen 8071;
server_name localhost;
# 管理端
location / {
proxy_pass http://192.168.10.83:8004;
}
# 阅卷端
location /web/ {
proxy_pass http://localhost:9000;
}
# 接口/附件等
location ~ ^/(api|admin|login|mark|slice)/ {
proxy_pass http://192.168.10.83:8004;
}
}
使用管理端账号登录调试。
说明: 管理端和阅卷端虽然独立启动,但他们的接口地址是一样的。 单独访问阅卷端,使用的接口是阅卷端配置的接口地址。访问 8071 地址,接口则是 nginx 配置的地址。注意两者的区别。