mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-11 16:26:10 +00:00
fix: Click outside the drop-down box to not hide
This commit is contained in:
@@ -12,6 +12,8 @@ import { checkToken, clearToken, isLogin } from './utils/auth'
|
||||
import { loginWithGoogle } from './utils/google'
|
||||
import { initTheme } from './utils/theme'
|
||||
import { clearVditorStorage } from './utils/clearVditorStorage'
|
||||
import ClickOutside from './directives/clickOutside' // 确保路径正确
|
||||
|
||||
|
||||
// 采用本地开发环境
|
||||
// export const API_DOMAIN = 'http://127.0.0.1'
|
||||
@@ -38,16 +40,18 @@ clearVditorStorage()
|
||||
const app = createApp(App)
|
||||
app.use(router)
|
||||
app.use(
|
||||
Toast,
|
||||
{
|
||||
Toast,
|
||||
{
|
||||
position: POSITION.TOP_RIGHT,
|
||||
containerClassName: "open-isle-toast-style-v1",
|
||||
transition: "Vue-Toastification__fade",
|
||||
// closeButton: false,
|
||||
timeout: 2000,
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
app.directive('click-outside', ClickOutside)
|
||||
|
||||
app.mount('#app')
|
||||
|
||||
checkToken().then(valid => {
|
||||
|
||||
Reference in New Issue
Block a user