mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-05 16:24:41 +09:00
* feat: 検索画面の UI を統一 * fix: エラーの修正 * add: changelog --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
@ -40,7 +40,6 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import XHeader from './header.vue';
|
||||
import { host, instanceName } from '@/config';
|
||||
import { search } from '@/scripts/search';
|
||||
import * as os from '@/os';
|
||||
import MkButton from '@/components/MkButton.vue';
|
||||
import { ColdDeviceStorage } from '@/store';
|
||||
@ -77,7 +76,9 @@ export default defineComponent({
|
||||
if (ColdDeviceStorage.get('syncDeviceDarkMode')) return;
|
||||
this.$store.set('darkMode', !this.$store.state.darkMode);
|
||||
},
|
||||
's': search,
|
||||
's': () => {
|
||||
mainRouter.push('/search');
|
||||
},
|
||||
'h|/': this.help,
|
||||
};
|
||||
},
|
||||
|
@ -58,7 +58,6 @@ import { ComputedRef, onMounted, provide } from 'vue';
|
||||
import XHeader from './header.vue';
|
||||
import XKanban from './kanban.vue';
|
||||
import { host, instanceName } from '@/config';
|
||||
import { search } from '@/scripts/search';
|
||||
import * as os from '@/os';
|
||||
import { instance } from '@/instance';
|
||||
import XSigninDialog from '@/components/MkSigninDialog.vue';
|
||||
@ -97,7 +96,9 @@ const keymap = $computed(() => {
|
||||
if (ColdDeviceStorage.get('syncDeviceDarkMode')) return;
|
||||
defaultStore.set('darkMode', !defaultStore.state.darkMode);
|
||||
},
|
||||
's': search,
|
||||
's': () => {
|
||||
mainRouter.push('/search');
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -27,7 +27,7 @@ import XSigninDialog from '@/components/MkSigninDialog.vue';
|
||||
import XSignupDialog from '@/components/MkSignupDialog.vue';
|
||||
import * as os from '@/os';
|
||||
import { instance } from '@/instance';
|
||||
import { search } from '@/scripts/search';
|
||||
import { mainRouter } from '@/router';
|
||||
|
||||
export default defineComponent({
|
||||
data() {
|
||||
@ -55,7 +55,9 @@ export default defineComponent({
|
||||
}, {}, 'closed');
|
||||
},
|
||||
|
||||
search,
|
||||
search() {
|
||||
mainRouter.push('/search');
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user