|
|
@ -110,11 +110,11 @@ watch( |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
function init() { |
|
|
|
function init() { |
|
|
|
form.title = `Untitled ${capitalize(typeAlias.value)}` |
|
|
|
form.title = `${capitalize(typeAlias.value)}` |
|
|
|
|
|
|
|
|
|
|
|
const repeatCount = views.value.filter((v) => v.title.startsWith(form.title)).length |
|
|
|
const repeatCount = views.value.filter((v) => v.title.startsWith(form.title)).length |
|
|
|
if (repeatCount) { |
|
|
|
if (repeatCount) { |
|
|
|
form.title = `${form.title} ${repeatCount}` |
|
|
|
form.title = `${form.title}-${repeatCount}` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (selectedViewId.value) { |
|
|
|
if (selectedViewId.value) { |
|
|
|