Skip to content

Commit 7c42f34

Browse files
authored
Merge pull request #8 from zhimin-dev/vite
修复sql to model bug
2 parents b25e073 + 409c308 commit 7c42f34

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dev-tool",
33
"description": "a dev-tool for chrome extension",
4-
"version": "2.0.2",
4+
"version": "2.0.3",
55
"manifest_version": 3,
66
"permissions": [
77
"alarms",

src/utils/go/common.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ function sqlStrToGoTemplate(str) {
138138
}
139139

140140
function getExpValue(str) {
141+
if (str === undefined) {
142+
return "";
143+
}
141144
let exp = str.split("=");
142145
if (exp.length >= 2) {
143146
return exp[1].trim();

0 commit comments

Comments
 (0)