Skip to content

Commit

Permalink
🐛 ts check.
Browse files Browse the repository at this point in the history
  • Loading branch information
novrain committed Dec 13, 2023
1 parent 59b2782 commit 0eac20c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/renderer/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
const routes = [] as RouteRecordRaw[]

const router = createRouter({
// @ts-ignore
history: createWebHistory(process.env.BASE_URL),
routes,
})
Expand Down
9 changes: 5 additions & 4 deletions src/renderer/src/views/SessionManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<script lang="ts" setup>
import LuminoBoxPanel from '@/components/lumino/LuminoBoxPanel.vue'
import LuminoWidget from '@/components/lumino/LuminoWidget.vue'
import { WidgetEvent } from '@/components/lumino/ItemWidget'
import SerialSession from '@/components/SerialSession.vue'
import { useMenuStore } from '@/store/menu'
import { useSessionStore } from '@/store/session'
Expand Down Expand Up @@ -100,16 +101,16 @@ const onNewSession = () => {
currentSessionId.value = session.id
}
const onLuminoWidgetClose = ({ msg, widget, item }) => {
sessionStore.closeSession(item)
const onLuminoWidgetClose = ({ msg, widget, item }: WidgetEvent) => {
sessionStore.closeSession(item as Session)
widget.doClose(msg)
}
const onLuminoWidgetActive = ({ msg, widget, item }) => {
const onLuminoWidgetActive = ({ msg, widget, item }: WidgetEvent) => {
currentSessionId.value = item.id
}
const onSessionNameChanged = ({ session, name }) => {
const onSessionNameChanged = ({ session, name }: { session: Session, name: string }) => {
sessionStore.setSessionName(session, name)
}
Expand Down

0 comments on commit 0eac20c

Please sign in to comment.