This commit is contained in:
tamaina 2023-07-30 15:07:26 +00:00
parent 965935278e
commit 644e5a1c94
1 changed files with 4 additions and 1 deletions

View File

@ -76,7 +76,10 @@ function onclick() {
}
// Plugin:register_note_view_interruptor 使watch
watch(() => props.image, () => {
watch(() => props.image, (newImage, oldImage) => {
// hide
// noteManager.set
if (JSON.stringify(newImage) === JSON.stringify(oldImage)) return;
hide = (defaultStore.state.nsfw === 'force' || defaultStore.state.enableDataSaverMode) ? true : (props.image.isSensitive && defaultStore.state.nsfw !== 'ignore');
}, {
deep: true,