fix(project): detail all task list fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user