feat: update VSCode settings for ESLint and Prettier integration
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user