Browse Source

fix

tags/v1.0.1
3136352472 5 years ago
parent
commit
bd9e32d90a
  1. 12
      govue/bindata.go
  2. 7
      govue/govue-js-src/src/index.js
  3. 7
      govue/govue-runtime/govue-dev.js
  4. 7
      govue/govue-runtime/govue-release.js
  5. 29
      govue/govue-runtime/header.js
  6. 4
      pool/pool.go

12
govue/bindata.go
File diff suppressed because it is too large
View File

7
govue/govue-js-src/src/index.js

@ -23,17 +23,18 @@ Vue.UseRaw = function () {
Vue.use_raw = true
return Vue
};
function HTMLEncode(html) {
var temp = document.createElement("div");
(temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html);
var output = temp.innerHTML;
temp = null;
return output;
}
}
Vue.extend = function (a, b) {
if (Vue.use_raw) {
var template = HTMLEncode(a.template)
a.template = "<gv-template-html>" + template + "<gv-template-html>"
a.template = "<gv-template-html>" + template + "</gv-template-html>"
Vue.use_raw = false;
}
@ -90,7 +91,7 @@ axios.defaults.adapter = function (config) {
var mpRequestOption = {
url: buildURL(buildFullPath(config.baseURL, config.url), config.params, config.paramsSerializer),
method: config["method"].toUpperCase(),
method: config["method"] ? config["method"].toUpperCase() : "get",
data: config["data"],
header: config["headers"],
timeout: config["timeout"],

7
govue/govue-runtime/govue-dev.js

@ -85363,17 +85363,18 @@ Vue.UseRaw = function () {
Vue.use_raw = true
return Vue
};
function HTMLEncode(html) {
var temp = document.createElement("div");
(temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html);
var output = temp.innerHTML;
temp = null;
return output;
}
}
Vue.extend = function (a, b) {
if (Vue.use_raw) {
var template = HTMLEncode(a.template)
a.template = "<gv-template-html>" + template + "<gv-template-html>"
a.template = "<gv-template-html>" + template + "</gv-template-html>"
Vue.use_raw = false;
}
@ -85430,7 +85431,7 @@ axios.defaults.adapter = function (config) {
var mpRequestOption = {
url: buildURL(buildFullPath(config.baseURL, config.url), config.params, config.paramsSerializer),
method: config["method"].toUpperCase(),
method: config["method"] ? config["method"].toUpperCase() : "get",
data: config["data"],
header: config["headers"],
timeout: config["timeout"],

7
govue/govue-runtime/govue-release.js

@ -85357,17 +85357,18 @@ Vue.UseRaw = function () {
Vue.use_raw = true
return Vue
};
function HTMLEncode(html) {
var temp = document.createElement("div");
(temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html);
var output = temp.innerHTML;
temp = null;
return output;
}
}
Vue.extend = function (a, b) {
if (Vue.use_raw) {
var template = HTMLEncode(a.template)
a.template = "<gv-template-html>" + template + "<gv-template-html>"
a.template = "<gv-template-html>" + template + "</gv-template-html>"
Vue.use_raw = false;
}
@ -85424,7 +85425,7 @@ axios.defaults.adapter = function (config) {
var mpRequestOption = {
url: buildURL(buildFullPath(config.baseURL, config.url), config.params, config.paramsSerializer),
method: config["method"].toUpperCase(),
method: config["method"] ? config["method"].toUpperCase() : "get",
data: config["data"],
header: config["headers"],
timeout: config["timeout"],

29
govue/govue-runtime/header.js

@ -65,7 +65,6 @@ var net = {
timeout: timeout
});
resp = JSON.parse(resp);
var statusCode = resp["statusCode"];
var result = resp["data"];
@ -77,19 +76,19 @@ var net = {
if (statusCode == 200) {
success && success({
data: result,
statusCode: statusCode,
statusCode: statusCode + "",
});
} else {
fail && fail({
data: result,
statusCode: statusCode,
statusCode: statusCode + "",
})
}
complete && complete({
data: result,
statusCode: statusCode,
})
// complete && complete({
// data: result,
// statusCode: statusCode + "",
// })
}
};
@ -287,13 +286,15 @@ var GoVueIgnoreOnEvent = function () {
})
};
function HTMLDecode(text) {
var temp = document.createElement("div");
temp.innerHTML = text;
var output = temp.innerText || temp.textContent;
temp = null;
return output;
if(!HTMLDecode){
function HTMLDecode(text) {
var temp = document.createElement("div");
temp.innerHTML = text;
var output = temp.innerText || temp.textContent;
temp = null;
return output;
}
}
function GoVueRestoreRawTemplate(){

4
pool/pool.go

@ -101,8 +101,8 @@ func (jrp *JsRuntimePool) JsRuntimeCall(call func(jr *jsruntime.JsRuntime)) (err
o := obj.(*jsruntime.JsRuntime)
call(o)
//err = jrp.jsRuntimePool.InvalidateObject(jrp.ctx, obj)
err = jrp.jsRuntimePool.ReturnObject(jrp.ctx, obj)
err = jrp.jsRuntimePool.InvalidateObject(jrp.ctx, obj)
//err = jrp.jsRuntimePool.ReturnObject(jrp.ctx, obj)
return
}

Loading…
Cancel
Save