[fix] compile error and mobile context menu
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"package": {
|
||||
"productName": "RisuAI",
|
||||
"version": "1.15.2"
|
||||
"version": "1.15.3"
|
||||
},
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
@@ -90,7 +90,7 @@
|
||||
"targets": "all"
|
||||
},
|
||||
"security": {
|
||||
"csp": ""
|
||||
"csp": null
|
||||
},
|
||||
"updater": {
|
||||
"active": false
|
||||
|
||||
@@ -277,6 +277,13 @@
|
||||
} catch (error) {}
|
||||
}
|
||||
|
||||
const preventAll = (e:Event) => {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
e.stopImmediatePropagation()
|
||||
return false
|
||||
}
|
||||
|
||||
onDestroy(unsub);
|
||||
</script>
|
||||
|
||||
@@ -313,6 +320,7 @@
|
||||
on:dragover={avatarDragOver}
|
||||
on:drop={(e) => {avatarDrop({index:ind}, e)}}
|
||||
on:dragenter|preventDefault
|
||||
on:contextmenu={preventAll}
|
||||
>
|
||||
<SidebarIndicator
|
||||
isActive={char.type === 'normal' && $selectedCharID === char.index && sideBarMode !== 1}
|
||||
@@ -381,6 +389,7 @@
|
||||
on:dragover={avatarDragOver}
|
||||
on:drop={(e) => {if(char.type === 'folder'){avatarDrop({index: ind, folder:char.id}, e)}}}
|
||||
on:dragenter|preventDefault
|
||||
on:contextmenu={preventAll}
|
||||
>
|
||||
<SidebarIndicator
|
||||
isActive={$selectedCharID === char2.index && sideBarMode !== 1}
|
||||
|
||||
@@ -7,7 +7,7 @@ import { cloneDeep } from 'lodash';
|
||||
|
||||
export const DataBase = writable({} as any as Database)
|
||||
export const loadedStore = writable(false)
|
||||
export let appVer = '1.15.2'
|
||||
export let appVer = '1.15.3'
|
||||
|
||||
|
||||
export function setDatabase(data:Database){
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":"1.15.2"}
|
||||
{"version":"1.15.3"}
|
||||
Reference in New Issue
Block a user