generated from VLADIMIR/template_frontend
add catalog
This commit is contained in:
@@ -29,13 +29,14 @@ const scenario = ref<Scenario>({
|
||||
name: undefined,
|
||||
story: undefined,
|
||||
author: undefined,
|
||||
status: undefined,
|
||||
updatedAt: undefined,
|
||||
createdAt: undefined,
|
||||
publishedAt: undefined,
|
||||
})
|
||||
|
||||
async function getScenario(id: number) {
|
||||
const res = await client.GetScenario({ id: id })
|
||||
const res = await client.GetFullScenario({ id: id })
|
||||
if (res.error != '') {
|
||||
message.error(res.error!)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user