fix bad import
This commit is contained in:
parent
d4f02c10df
commit
c6f47c9b25
4 changed files with 5 additions and 5 deletions
|
|
@ -39,7 +39,7 @@ import ConnectionOverlay from './../components/ConnectionOverlay.vue'
|
|||
import HelpOverlay from './../components/HelpOverlay.vue'
|
||||
|
||||
import { main, MODE_PLAY } from './../game'
|
||||
import { Player } from '../../common/GameCommon'
|
||||
import { Player } from '../../common/Types'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'game',
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ import ImageLibrary from './../components/ImageLibrary.vue'
|
|||
import NewImageDialog from './../components/NewImageDialog.vue'
|
||||
import EditImageDialog from './../components/EditImageDialog.vue'
|
||||
import NewGameDialog from './../components/NewGameDialog.vue'
|
||||
import { GameSettings, Image, Tag } from '../../common/GameCommon'
|
||||
import { GameSettings, Image, Tag } from '../../common/Types'
|
||||
import Util from '../../common/Util'
|
||||
|
||||
export default defineComponent({
|
||||
|
|
@ -150,7 +150,7 @@ export default defineComponent({
|
|||
this.dialog = 'new-game'
|
||||
},
|
||||
async onNewGame(gameSettings: GameSettings) {
|
||||
const res = await fetch('/newgame', {
|
||||
const res = await fetch('/api/newgame', {
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue