提交 11e2bc73 编写于 作者: fxy060608's avatar fxy060608

fix(h5-vue-router): remove Object.assign #1116

上级 90275821
/*!
* vue-router v3.0.1
* (c) 2019 Evan You
* (c) 2020 Evan You
* @license MIT
*/
'use strict';
......@@ -1325,7 +1325,6 @@ function normalizeLocation (
/* */
function createMatcher (
routes,
router
......@@ -1495,7 +1494,7 @@ function createMatcher (
if (record.meta.id) {
record.components.default.name = record.meta.name + '-' + location.params.__id__;
} else {
record = Object.assign({}, record);
record = extend({}, record);
record.components = {
'default': {
name: record.meta.name + '-' + location.params.__id__,
......
/*!
* vue-router v3.0.1
* (c) 2019 Evan You
* (c) 2020 Evan You
* @license MIT
*/
/* */
......@@ -1323,7 +1323,6 @@ function normalizeLocation (
/* */
function createMatcher (
routes,
router
......@@ -1493,7 +1492,7 @@ function createMatcher (
if (record.meta.id) {
record.components.default.name = record.meta.name + '-' + location.params.__id__;
} else {
record = Object.assign({}, record);
record = extend({}, record);
record.components = {
'default': {
name: record.meta.name + '-' + location.params.__id__,
......
/*!
* vue-router v3.0.1
* (c) 2019 Evan You
* (c) 2020 Evan You
* @license MIT
*/
(function (global, factory) {
......@@ -1329,7 +1329,6 @@ function normalizeLocation (
/* */
function createMatcher (
routes,
router
......@@ -1499,7 +1498,7 @@ function createMatcher (
if (record.meta.id) {
record.components.default.name = record.meta.name + '-' + location.params.__id__;
} else {
record = Object.assign({}, record);
record = extend({}, record);
record.components = {
'default': {
name: record.meta.name + '-' + location.params.__id__,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册