|
@@ -195,7 +195,8 @@ export default {
|
|
return cardInfo;
|
|
return cardInfo;
|
|
},
|
|
},
|
|
async toPreview(cardModel) {
|
|
async toPreview(cardModel) {
|
|
- await this.toSave(cardModel);
|
|
|
|
|
|
+ const res = await this.toSave(cardModel);
|
|
|
|
+ if (!res) return;
|
|
|
|
|
|
const { href } = this.$router.resolve({
|
|
const { href } = this.$router.resolve({
|
|
name: "CardPreview",
|
|
name: "CardPreview",
|
|
@@ -221,6 +222,7 @@ export default {
|
|
this.cardId = result;
|
|
this.cardId = result;
|
|
this.$ls.set("cardId", this.cardId);
|
|
this.$ls.set("cardId", this.cardId);
|
|
this.$message.success("保存成功!");
|
|
this.$message.success("保存成功!");
|
|
|
|
+ return this.cardId;
|
|
},
|
|
},
|
|
async toSubmit(cardData) {
|
|
async toSubmit(cardData) {
|
|
const res = await this.$prompt("确定要提交当前题卡吗?", "提示", {
|
|
const res = await this.$prompt("确定要提交当前题卡吗?", "提示", {
|