fix(project): detail all task list fix

This commit is contained in:
zhangheng
2026-02-26 19:26:46 +08:00
parent 77a9571b72
commit 4c72bbe55d
9 changed files with 780 additions and 166 deletions

View File

@@ -1,15 +1,15 @@
"use client"
import { getName } from "@tauri-apps/api/app"
import { getCurrentWindow } from "@tauri-apps/api/window"
import { usePathname } from "next/navigation"
import { useEffect } from "react"
import { getProjectAdminList } from "./api/project"
import { getUserAll, getUserGroupTree } from "./api/user"
import {
useAllTaskStore,
useAllUserStore,
usePermissionStore,
} from "./store/auth"
import { getUserAll, getUserGroupTree } from "./api/user"
import { usePathname } from "next/navigation"
import { getProjectAdminList } from "./api/project"
export function OptStore() {
const detectEnvironment = async () => {
@@ -17,8 +17,8 @@ export function OptStore() {
const result = await getName()
console.log("Running in Tauri environment", result)
return true
} catch (error) {
console.log("Not running in Tauri environment", error)
} catch {
console.log("Not running in Tauri environment")
return false
}
}