This commit is contained in:
parent
b615c1971a
commit
448db14c8a
|
|
@ -18,6 +18,7 @@ import agora from "@/utils/package/agora";
|
||||||
import QuitTips from "@/components/QuitTips";
|
import QuitTips from "@/components/QuitTips";
|
||||||
import { GetLeave } from "@/api/Meeting";
|
import { GetLeave } from "@/api/Meeting";
|
||||||
import UserVideo from "./page/UserVideo";
|
import UserVideo from "./page/UserVideo";
|
||||||
|
import path from "path";
|
||||||
const fs = require('fs').promises;
|
const fs = require('fs').promises;
|
||||||
const { exec } = require('child_process');
|
const { exec } = require('child_process');
|
||||||
const App: React.FC = () => {
|
const App: React.FC = () => {
|
||||||
|
|
@ -117,8 +118,8 @@ const App: React.FC = () => {
|
||||||
ecordingVolume: '', //输入音量
|
ecordingVolume: '', //输入音量
|
||||||
playBackVolume: '', //输出音量
|
playBackVolume: '', //输出音量
|
||||||
autoEcordingVolume: true, //是否自动调整麦克风音量
|
autoEcordingVolume: true, //是否自动调整麦克风音量
|
||||||
recordingFilesPath: '', //本地录制保存路径
|
recordingFilesPath: path.resolve(__dirname, '../../Downloads') + '\\', //本地录制保存路径
|
||||||
shareFilesPath: '', //共享文件保存路径
|
shareFilesPath: path.resolve(__dirname, '../../Downloads/') + '\\', //共享文件保存路径
|
||||||
isShareSavePath: true, //是否下载钱询问每个文件保存的位置
|
isShareSavePath: true, //是否下载钱询问每个文件保存的位置
|
||||||
closeSetting: 'hide', //关闭按钮设置
|
closeSetting: 'hide', //关闭按钮设置
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
|
|
@ -428,7 +428,7 @@ const RecordingComponents = () => {
|
||||||
if (!setting.recordingFilesPath) {
|
if (!setting.recordingFilesPath) {
|
||||||
// 获取安装父目录
|
// 获取安装父目录
|
||||||
const currentDirectory = __dirname;
|
const currentDirectory = __dirname;
|
||||||
const parentDirectory = path.resolve(currentDirectory, '../../Downloads');
|
const parentDirectory = path.resolve(currentDirectory, '../../Downloads') + '\\';
|
||||||
setting.recordingFilesPath = parentDirectory;
|
setting.recordingFilesPath = parentDirectory;
|
||||||
setFilePath(setting.recordingFilesPath)
|
setFilePath(setting.recordingFilesPath)
|
||||||
storage.setItem('setting', JSON.stringify(setting))
|
storage.setItem('setting', JSON.stringify(setting))
|
||||||
|
|
@ -500,7 +500,7 @@ const FileComponents = () => {
|
||||||
if (!setting.shareFilesPath) {
|
if (!setting.shareFilesPath) {
|
||||||
// 获取安装父目录
|
// 获取安装父目录
|
||||||
const currentDirectory = __dirname;
|
const currentDirectory = __dirname;
|
||||||
const parentDirectory = path.resolve(currentDirectory, '../../Downloads');
|
const parentDirectory = path.resolve(currentDirectory, '../../Downloads') + '\\';
|
||||||
setting.shareFilesPath = parentDirectory
|
setting.shareFilesPath = parentDirectory
|
||||||
setFilePath(setting.shareFilesPath)
|
setFilePath(setting.shareFilesPath)
|
||||||
storage.setItem('setting', JSON.stringify(setting))
|
storage.setItem('setting', JSON.stringify(setting))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue