refactor: standardize import paths and clean up unused code

Migrate legacy relative API imports to consistent absolute @/api paths across all components
Remove unnecessary .js file extensions from ES module imports
Add new StreamManager utility and base client configuration constants file
Clean up unused imports and dynamic config calls in ChatGuide and ChatInputArea components
Update the index.html page title to "nianxx"
Replace dynamic OSS URL and local text imports in ChatGuide with hardcoded static values
This commit is contained in:
duanshuwen
2026-05-27 07:35:28 +08:00
parent 1a5a2ae6a9
commit dd36ccc118
13 changed files with 138 additions and 27 deletions

View File

@@ -61,19 +61,14 @@
<script setup>
import { ref, computed, watch, nextTick, onMounted, defineExpose, onUnmounted } from "vue";
import RecordingWaveBtn from "@/components/Speech/RecordingWaveBtn.vue";
import { chatInputPlaceholder } from "@/constant/local";
// #ifdef APP-PLUS
import { appSpeechRecognitionOptions } from "@/constant/speech";
// #endif
let manager = null;
let speechProvider = "";
const isSpeechRecognitionEnabled = ref(true);
const isSpeechRecognitionSupported = ref(false);
let appSpeechOptions = {};
// #ifdef APP-PLUS
appSpeechOptions = appSpeechRecognitionOptions;
// #endif
// WechatSI 是微信小程序插件App 原生基座没有 requirePlugin。
// #ifdef MP-WEIXIN
@@ -109,9 +104,7 @@ const recordingWaveBtnRef = ref(null);
const appSpeechRef = ref(null);
const appSpeechKey = ref(0);
const appSpeechVisible = ref(true);
const placeholder = computed(() => {
return chatInputPlaceholder();
});
const placeholder = ref('请输入');
const inputMessage = ref(props.modelValue || "");
const isFocused = ref(false);
const keyboardHeight = ref(0);