feat: update VSCode settings for ESLint and Prettier integration
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 20s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s

chore: refactor ESLint configuration for improved linting rules and performance

fix: handle push event data parsing in service worker

style: adjust tabbar item properties for better readability in App.vue

refactor: remove unused functions and improve code clarity in TransactionDetail.vue

fix: ensure consistent event handling in CalendarView.vue

style: clean up component structure and formatting in various Vue files

chore: update launch script for better command execution

feat: add ESLint configuration file for consistent code style across the project

fix: resolve issues with button click events in multiple components
This commit is contained in:
孙诚
2026-01-07 14:33:30 +08:00
parent efdfe88155
commit b2339c1c5e
32 changed files with 380 additions and 241 deletions

View File

@@ -1,5 +1,6 @@
<template>
<div class="page-container-flex">
<!-- eslint-disable vue/no-v-html -->
<template>
<div class="page-container-flex">
<!-- 顶部导航栏 -->
<van-nav-bar
title="智能分析"
@@ -11,8 +12,8 @@
<van-icon
name="question-o"
size="20"
@click="onClickPrompt"
style="cursor: pointer; padding-right: 12px;"
@click="onClickPrompt"
/>
</template>
</van-nav-bar>
@@ -39,8 +40,8 @@
type="primary"
plain
size="medium"
@click="selectQuestion(q)"
class="quick-tag"
@click="selectQuestion(q)"
>
{{ q }}
</van-tag>
@@ -52,26 +53,26 @@
round
:loading="analyzing"
loading-text="分析中..."
@click="startAnalysis"
:disabled="!userInput.trim()"
@click="startAnalysis"
>
开始分析
</van-button>
</div>
<!-- 结果区域 -->
<div class="result-section" v-if="showResult">
<div v-if="showResult" class="result-section">
<div class="result-header">
<h3>分析结果</h3>
<van-icon
v-if="!analyzing"
name="delete-o"
size="18"
size="18"
@click="clearResult"
v-if="!analyzing"
/>
</div>
<div class="result-content" ref="resultContainer">
<div ref="resultContainer" class="result-content">
<div v-html="resultHtml"></div>
<van-loading v-if="analyzing" class="result-loading">
AI正在分析中...
@@ -202,7 +203,7 @@ const startAnalysis = async () => {
resultHtml.value = ''
try {
var baseUrl = import.meta.env.VITE_API_BASE_URL || ''
const baseUrl = import.meta.env.VITE_API_BASE_URL || ''
const response = await fetch(`${baseUrl}/TransactionRecord/AnalyzeBill`, {
method: 'POST',
headers: {