From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:48:15 +0800
Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改

---
 PAMapp/node_modules/vuex-module-decorators/dist/cjs/index.js |   37 ++++++++++++++++++++++---------------
 1 files changed, 22 insertions(+), 15 deletions(-)

diff --git a/PAMapp/node_modules/vuex-module-decorators/dist/cjs/index.js b/PAMapp/node_modules/vuex-module-decorators/dist/cjs/index.js
index a2524e3..f2b60ba 100644
--- a/PAMapp/node_modules/vuex-module-decorators/dist/cjs/index.js
+++ b/PAMapp/node_modules/vuex-module-decorators/dist/cjs/index.js
@@ -27,7 +27,7 @@
     if (!module._vmdModuleName) {
         throw new Error("ERR_GET_MODULE_NAME : Could not get module accessor.\n      Make sure your module has name, we can't make accessors for unnamed modules\n      i.e. @Module({ name: 'something' })");
     }
-    return "vuexModuleDecorators/" + module._vmdModuleName;
+    return "vuexModuleDecorators/".concat(module._vmdModuleName);
 }
 
 var VuexModule = /** @class */ (function () {
@@ -136,12 +136,14 @@
     }
 }
 
-function __spreadArrays() {
-    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
-    for (var r = Array(s), k = 0, i = 0; i < il; i++)
-        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
-            r[k] = a[j];
-    return r;
+function __spreadArray(to, from, pack) {
+    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+        if (ar || !(i in from)) {
+            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+            ar[i] = from[i];
+        }
+    }
+    return to.concat(ar || Array.prototype.slice.call(from));
 }
 
 function staticStateGenerator(module, modOpt, statics) {
@@ -170,7 +172,7 @@
         if (module.namespaced) {
             Object.defineProperty(statics, key, {
                 get: function () {
-                    return statics.store.getters[modOpt.name + "/" + key];
+                    return statics.store.getters["".concat(modOpt.name, "/").concat(key)];
                 }
             });
         }
@@ -192,7 +194,7 @@
                 for (var _i = 0; _i < arguments.length; _i++) {
                     args[_i] = arguments[_i];
                 }
-                (_a = statics.store).commit.apply(_a, __spreadArrays([modOpt.name + "/" + key], args));
+                (_a = statics.store).commit.apply(_a, __spreadArray(["".concat(modOpt.name, "/").concat(key)], args, false));
             };
         }
         else {
@@ -202,7 +204,7 @@
                 for (var _i = 0; _i < arguments.length; _i++) {
                     args[_i] = arguments[_i];
                 }
-                (_a = statics.store).commit.apply(_a, __spreadArrays([key], args));
+                (_a = statics.store).commit.apply(_a, __spreadArray([key], args, false));
             };
         }
     });
@@ -218,7 +220,7 @@
                 return __awaiter(this, void 0, void 0, function () {
                     var _a;
                     return __generator(this, function (_b) {
-                        return [2 /*return*/, (_a = statics.store).dispatch.apply(_a, __spreadArrays([modOpt.name + "/" + key], args))];
+                        return [2 /*return*/, (_a = statics.store).dispatch.apply(_a, __spreadArray(["".concat(modOpt.name, "/").concat(key)], args, false))];
                     });
                 });
             };
@@ -232,7 +234,7 @@
                 return __awaiter(this, void 0, void 0, function () {
                     var _a;
                     return __generator(this, function (_b) {
-                        return [2 /*return*/, (_a = statics.store).dispatch.apply(_a, __spreadArrays([key], args))];
+                        return [2 /*return*/, (_a = statics.store).dispatch.apply(_a, __spreadArray([key], args, false))];
                     });
                 });
             };
@@ -385,7 +387,7 @@
                                     'If not dynamic use this.context.commit("mutationName", payload) ' +
                                     'and this.context.getters["getterName"]' +
                                     '\n' +
-                                    new Error("Could not perform action " + key.toString()).stack +
+                                    new Error("Could not perform action ".concat(key.toString())).stack +
                                     '\n' +
                                     e_1.stack);
                         case 6: return [2 /*return*/];
@@ -457,14 +459,19 @@
         var mutactFunction = descriptor.value;
         var action = function (context, payload) {
             return __awaiter(this, void 0, void 0, function () {
-                var actionPayload, e_1;
+                var thisObj, actionPayload, e_1;
                 return __generator(this, function (_a) {
                     switch (_a.label) {
                         case 0:
                             _a.trys.push([0, 2, , 3]);
-                            return [4 /*yield*/, mutactFunction.call(context, payload)];
+                            thisObj = { context: context };
+                            addPropertiesToObject(thisObj, context.state);
+                            addPropertiesToObject(thisObj, context.getters);
+                            return [4 /*yield*/, mutactFunction.call(thisObj, payload)];
                         case 1:
                             actionPayload = _a.sent();
+                            if (actionPayload === undefined)
+                                return [2 /*return*/];
                             context.commit(key, actionPayload);
                             return [3 /*break*/, 3];
                         case 2:

--
Gitblit v1.8.0