refactor(tauri): 移除持久化存储和HTTP插件优化应用架构
- 移除了 tauri-plugin-persisted-scope 和 tauri-plugin-http 插件依赖 - 从桌面功能权限中移除了文件系统和HTTP访问权限 - 删除了相关的存储键常量定义 - 修改悬浮列表窗口创建逻辑,移除页面类型参数和动态计算功能 - 主窗口配置调整为非透明背景并设置白色背景色 - 移除了前端悬浮列表中互动课堂和智评会议相关功能组件 - 更新Cargo.lock移除相关依赖包确保构建一致性
This commit is contained in:
18
index.html
18
index.html
@ -14,6 +14,8 @@
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
}
|
||||
body > .html-body-app {
|
||||
margin: 0;
|
||||
@ -115,23 +117,7 @@
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<script type="module">
|
||||
import { type } from '@tauri-apps/plugin-os';
|
||||
import { isTauri } from '@tauri-apps/api/core';
|
||||
import { getCurrentWindow } from '@tauri-apps/api/window';
|
||||
if (isTauri()) {
|
||||
let currentWindow = getCurrentWindow();
|
||||
if (currentWindow.label === 'main') {
|
||||
document.body.querySelector('body > #app').style.background = '#ffffff';
|
||||
}
|
||||
document.body.style.borderRadius = '8px';
|
||||
document.body.style.overflow = 'hidden';
|
||||
|
||||
if (currentWindow.label === 'drawing-board') {
|
||||
currentWindow.show();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<body class="devtool" style="margin: 0; width: 100vw !important">
|
||||
<div id="app" class="html-body-app">
|
||||
<!-- 加载中 -->
|
||||
|
||||
Reference in New Issue
Block a user