Browse Source

fix

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

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

5
govue/govue-js-src/src/index.js

@ -23,6 +23,7 @@ Vue.UseRaw = function () {
Vue.use_raw = true Vue.use_raw = true
return Vue return Vue
}; };
function HTMLEncode(html) { function HTMLEncode(html) {
var temp = document.createElement("div"); var temp = document.createElement("div");
(temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html); (temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html);
@ -33,7 +34,7 @@ function HTMLEncode(html) {
Vue.extend = function (a, b) { Vue.extend = function (a, b) {
if (Vue.use_raw) { if (Vue.use_raw) {
var template = HTMLEncode(a.template) 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; Vue.use_raw = false;
} }
@ -90,7 +91,7 @@ axios.defaults.adapter = function (config) {
var mpRequestOption = { var mpRequestOption = {
url: buildURL(buildFullPath(config.baseURL, config.url), config.params, config.paramsSerializer), 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"], data: config["data"],
header: config["headers"], header: config["headers"],
timeout: config["timeout"], timeout: config["timeout"],

5
govue/govue-runtime/govue-dev.js

@ -85363,6 +85363,7 @@ Vue.UseRaw = function () {
Vue.use_raw = true Vue.use_raw = true
return Vue return Vue
}; };
function HTMLEncode(html) { function HTMLEncode(html) {
var temp = document.createElement("div"); var temp = document.createElement("div");
(temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html); (temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html);
@ -85373,7 +85374,7 @@ function HTMLEncode(html) {
Vue.extend = function (a, b) { Vue.extend = function (a, b) {
if (Vue.use_raw) { if (Vue.use_raw) {
var template = HTMLEncode(a.template) 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; Vue.use_raw = false;
} }
@ -85430,7 +85431,7 @@ axios.defaults.adapter = function (config) {
var mpRequestOption = { var mpRequestOption = {
url: buildURL(buildFullPath(config.baseURL, config.url), config.params, config.paramsSerializer), 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"], data: config["data"],
header: config["headers"], header: config["headers"],
timeout: config["timeout"], timeout: config["timeout"],

5
govue/govue-runtime/govue-release.js

@ -85357,6 +85357,7 @@ Vue.UseRaw = function () {
Vue.use_raw = true Vue.use_raw = true
return Vue return Vue
}; };
function HTMLEncode(html) { function HTMLEncode(html) {
var temp = document.createElement("div"); var temp = document.createElement("div");
(temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html); (temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html);
@ -85367,7 +85368,7 @@ function HTMLEncode(html) {
Vue.extend = function (a, b) { Vue.extend = function (a, b) {
if (Vue.use_raw) { if (Vue.use_raw) {
var template = HTMLEncode(a.template) 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; Vue.use_raw = false;
} }
@ -85424,7 +85425,7 @@ axios.defaults.adapter = function (config) {
var mpRequestOption = { var mpRequestOption = {
url: buildURL(buildFullPath(config.baseURL, config.url), config.params, config.paramsSerializer), 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"], data: config["data"],
header: config["headers"], header: config["headers"],
timeout: config["timeout"], timeout: config["timeout"],

15
govue/govue-runtime/header.js

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

4
pool/pool.go

@ -101,8 +101,8 @@ func (jrp *JsRuntimePool) JsRuntimeCall(call func(jr *jsruntime.JsRuntime)) (err
o := obj.(*jsruntime.JsRuntime) o := obj.(*jsruntime.JsRuntime)
call(o) 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 return
} }

Loading…
Cancel
Save