forked from daren.hsu/line_push
update
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
global.installComponents = function (component, components) {
|
||||
const options = typeof component.exports === 'function'
|
||||
var options = typeof component.exports === 'function'
|
||||
? component.exports.extendOptions
|
||||
: component.options
|
||||
|
||||
@@ -19,7 +19,7 @@ global.installComponents = function (component, components) {
|
||||
}
|
||||
}
|
||||
|
||||
const functionalPatchKey = '_functionalComponents'
|
||||
var functionalPatchKey = '_functionalComponents'
|
||||
|
||||
function provideFunctionalComponents(component, components) {
|
||||
if (component.exports[functionalPatchKey]) {
|
||||
@@ -27,7 +27,7 @@ function provideFunctionalComponents(component, components) {
|
||||
}
|
||||
component.exports[functionalPatchKey] = true
|
||||
|
||||
const render = component.exports.render
|
||||
var render = component.exports.render
|
||||
component.exports.render = function (h, vm) {
|
||||
return render(h, Object.assign({}, vm, {
|
||||
_c: function (n, a, b) {
|
||||
|
||||
Reference in New Issue
Block a user