dev-prepare #2
@@ -59,6 +59,10 @@ fn main() {
|
|||||||
// .plugin(tauri_plugin_store::Builder::default().build())
|
// .plugin(tauri_plugin_store::Builder::default().build())
|
||||||
// .plugin(tauri_plugin_updater::Builder::new().build())
|
// .plugin(tauri_plugin_updater::Builder::new().build())
|
||||||
.setup(|app| {
|
.setup(|app| {
|
||||||
|
// Deep Link
|
||||||
|
#[cfg(desktop)]
|
||||||
|
app.deep_link().register("cstb")?;
|
||||||
|
|
||||||
// Tray
|
// Tray
|
||||||
#[cfg(all(desktop))]
|
#[cfg(all(desktop))]
|
||||||
{
|
{
|
||||||
@@ -80,11 +84,6 @@ fn main() {
|
|||||||
|
|
||||||
// apply_blur(&window, Some((18, 18, 18, 0)))
|
// apply_blur(&window, Some((18, 18, 18, 0)))
|
||||||
// .expect("Unsupported platform! 'apply_blur' is only supported on Windows");
|
// .expect("Unsupported platform! 'apply_blur' is only supported on Windows");
|
||||||
|
|
||||||
// Deep Link
|
|
||||||
#[cfg(desktop)]
|
|
||||||
app.deep_link().register("cstb")?;
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
.invoke_handler(tauri::generate_handler![
|
.invoke_handler(tauri::generate_handler![
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const LaunchOption = () => {
|
|||||||
</CardIcon>
|
</CardIcon>
|
||||||
<CardTool>
|
<CardTool>
|
||||||
{tool.state.launchOptions.map((option, index) => (
|
{tool.state.launchOptions.map((option, index) => (
|
||||||
<ToolButton key={option} onClick={() => tool.setLaunchIndex(index)}>
|
<ToolButton key={index} onClick={() => tool.setLaunchIndex(index)}>
|
||||||
{index + 1}
|
{index + 1}
|
||||||
</ToolButton>
|
</ToolButton>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ export function Prepare() {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p className="text-white">{links || 'no'}</p>
|
{links.length > 0 && <p className="text-white">{links}</p>}
|
||||||
|
|
||||||
<section className="flex justify-center w-full gap-3 mt-6">
|
<section className="flex justify-center w-full gap-3 mt-6">
|
||||||
<Button onPress={() => alert("获取")} variant="ghost" color="default" size="sm">
|
<Button onPress={() => alert("获取")} variant="ghost" color="default" size="sm">
|
||||||
|
|||||||
Reference in New Issue
Block a user