We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
希望能自由固定一种视图预览模式,默认是列表,每次预览图片,视频都要切换一下不方便
能否用js 打开的时候自动去点击修改
No response
The text was updated successfully, but these errors were encountered:
你这个需求我正好自己改过,我自己改的源码然后编译的,在alist-web的layout.tsx中添加这个:
onMount(() => { const currentUrl = window.location.href; const targetUrl_1 = "your_url_1"; const targetUrl_2 = "your_url_2"; if (currentUrl === targetUrl_1) { setLayout('image'); } if (currentUrl === targetUrl_2) { setLayout('list'); } });
这样当url等于your_url_1的时候就会触发然后自动改变视图了,我自己的笨办法🤣 我也希望新版本能内置这个功能,具体表现大概就是元数据中能添加这个路径的视图,每次到这个路径就自动变成这个视图
Sorry, something went wrong.
feat: global default layout
e3ab4e1
No branches or pull requests
Please make sure of the following things
Description of the feature / 需求描述
希望能自由固定一种视图预览模式,默认是列表,每次预览图片,视频都要切换一下不方便
Suggested solution / 实现思路
能否用js 打开的时候自动去点击修改
Additional context / 附件
No response
The text was updated successfully, but these errors were encountered: