智教助手平台:完整初始化

- 前端:Vue3 + TS + Element Plus,24 个页面路由(课件/组题/教案/动画/思维导图/作文批改/命题/课堂/资源/社区等)
- 后端:FastAPI + SQLAlchemy + SQLite,17 个路由模块,AI 服务层含降级模板
- AI:glm-5.x 推理模型已禁用思维链,确保输出真实内容
- 修复:ai_service 两处请求体注入 enable_thinking/thinking disabled
- 测试账号:13900999999 / test1234
This commit is contained in:
Zhang Jing Xuan
2026-07-29 16:29:10 +08:00
commit 0841b1a103
193 changed files with 44995 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
const { chromium } = require('playwright-core');
(async () => {
const CHROME = String.raw`C:\Program Files\Google\Chrome\Application\chrome.exe`;
const browser = await chromium.launch({ executablePath: CHROME, headless: true });
const page = await browser.newPage();
const errs = [];
page.on('console', m => errs.push(m.type()+': '+m.text()));
page.on('pageerror', e => errs.push('PAGEERR: '+e.message));
const base = 'http://127.0.0.1:8010';
const r = await fetch(base + '/api/auth/login', { method:'POST', headers:{'Content-Type':'application/json'}, body: JSON.stringify({phone:'13943441149',password:'Test1234'}) });
const tok = (await r.json()).data?.access_token;
await page.goto('http://127.0.0.1:5175/login');
await page.evaluate(t => { localStorage.setItem('access_token', t); localStorage.setItem('refresh_token','r'); }, tok);
await page.goto('http://127.0.0.1:5175/animation');
await page.waitForTimeout(3000);
console.log('URL:', page.url());
console.log('has tpl-btn:', await page.locator('.tpl-btn').count());
console.log('body text (first 200):', (await page.locator('body').innerText()).slice(0,200));
console.log('errors:', errs.slice(0,8));
await page.screenshot({ path: '../audit_shots/_debug_page.png' });
await browser.close();
})();