Restore default template binding across browser sessions
This commit is contained in:
@@ -558,6 +558,10 @@ async function saveSceneAsNew({ initial = "", note = "", bind = true } = {}) {
|
||||
}
|
||||
|
||||
async function saveSceneToCurrentTemplate(context) {
|
||||
if (context.readOnly || context.type !== "template") {
|
||||
announce("演示案例不得覆盖,请另存为新模板", true);
|
||||
return;
|
||||
}
|
||||
await mutate(async () => {
|
||||
const result = await apiJson(`/api/templates/${context.id}`, {
|
||||
method: "PUT",
|
||||
|
||||
Reference in New Issue
Block a user