Commit 7c16e3bf authored by 黄奎's avatar 黄奎

页面修改

parent 9e4ddf79
...@@ -358,7 +358,12 @@ ...@@ -358,7 +358,12 @@
this.$refs.newFeature.setReadOnly(false) this.$refs.newFeature.setReadOnly(false)
} catch (ex) {} } catch (ex) {}
try { try {
this.$refs.newFeature2.canEditChange(true) if (this.$refs.newFeature2) {
this.$refs.newFeature2.canEditChange(true);
}
if (this.$refs.UpgradedVersion) {
this.$refs.UpgradedVersion.canEditChange(true);
}
} catch (ex) {} } catch (ex) {}
//解锁表单重复提交 //解锁表单重复提交
this.$emit("unlockFormCommit", true); this.$emit("unlockFormCommit", true);
......
...@@ -31,10 +31,13 @@ ...@@ -31,10 +31,13 @@
try { try {
var range = sel.getRangeAt(0); var range = sel.getRangeAt(0);
var textNode = range.startContainer; var textNode = range.startContainer;
var textNodeName = textNode.nodeName;
console.log("textNode", textNode.nodeName); console.log("textNode", textNode.nodeName);
range.setStart(textNode, offset); if (textNodeName == "#text") {
sel.removeAllRanges(); range.setStart(textNode, offset);
sel.addRange(range); sel.removeAllRanges();
sel.addRange(range);
}
} catch (err) { } catch (err) {
console.log(err); console.log(err);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment