widget.qw 1.0.2 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/style.css +29 -22
- package/build/widget.qw.es.js +35 -21
- package/build/widget.qw.umd.js +35 -21
- package/package.json +1 -1
- package/src/api/index.js +8 -0
- package/src/components/CascaderPicker.vue +4 -7
- package/src/components/CascaderPop.vue +21 -2
- package/src/router/index.ts +13 -1
- package/src/util/auth_util.js +4 -4
- package/src/views/cascaderpicker/index.vue +0 -0
- package/src/views/home/index.vue +0 -0
- package/vite.config.ts +2 -2
package/build/style.css
CHANGED
|
@@ -762,25 +762,25 @@
|
|
|
762
762
|
margin:3px;
|
|
763
763
|
}
|
|
764
764
|
|
|
765
|
-
.cascader-pop[data-v-
|
|
765
|
+
.cascader-pop[data-v-b85d16dc] {
|
|
766
766
|
width: 100%;
|
|
767
767
|
overflow: hidden;
|
|
768
768
|
}
|
|
769
|
-
.cascader-selector[data-v-
|
|
769
|
+
.cascader-selector[data-v-b85d16dc] {
|
|
770
770
|
padding: 10px;
|
|
771
771
|
}
|
|
772
|
-
.search-buttons[data-v-
|
|
772
|
+
.search-buttons[data-v-b85d16dc] {
|
|
773
773
|
display: flex;
|
|
774
774
|
gap: 10px;
|
|
775
775
|
}
|
|
776
|
-
.clear-btn[data-v-
|
|
776
|
+
.clear-btn[data-v-b85d16dc] {
|
|
777
777
|
background-color: #f2f3f5;
|
|
778
778
|
border: none;
|
|
779
779
|
border-radius: 4px;
|
|
780
780
|
padding: 4px 8px;
|
|
781
781
|
font-size: 14px;
|
|
782
782
|
}
|
|
783
|
-
.confirm-btn[data-v-
|
|
783
|
+
.confirm-btn[data-v-b85d16dc] {
|
|
784
784
|
background-color: #1989fa;
|
|
785
785
|
color: white;
|
|
786
786
|
border: none;
|
|
@@ -788,19 +788,19 @@
|
|
|
788
788
|
padding: 4px 8px;
|
|
789
789
|
font-size: 14px;
|
|
790
790
|
}
|
|
791
|
-
.no-results[data-v-
|
|
791
|
+
.no-results[data-v-b85d16dc] {
|
|
792
792
|
text-align: center;
|
|
793
793
|
padding: 20px;
|
|
794
794
|
color: #969799;
|
|
795
795
|
}
|
|
796
|
-
.cascader-header[data-v-
|
|
796
|
+
.cascader-header[data-v-b85d16dc] {
|
|
797
797
|
padding: 10px;
|
|
798
798
|
border-bottom: 1px solid #ebedf0;
|
|
799
799
|
display: flex;
|
|
800
800
|
justify-content: space-between;
|
|
801
801
|
align-items: center;
|
|
802
802
|
}
|
|
803
|
-
.current-path[data-v-
|
|
803
|
+
.current-path[data-v-b85d16dc] {
|
|
804
804
|
flex: 1;
|
|
805
805
|
font-size: 14px;
|
|
806
806
|
color: #323233;
|
|
@@ -808,25 +808,25 @@
|
|
|
808
808
|
overflow: hidden;
|
|
809
809
|
text-overflow: ellipsis;
|
|
810
810
|
}
|
|
811
|
-
.header-right[data-v-
|
|
811
|
+
.header-right[data-v-b85d16dc] {
|
|
812
812
|
display: flex;
|
|
813
813
|
gap: 8px;
|
|
814
814
|
margin-left: auto;
|
|
815
815
|
}
|
|
816
|
-
.cancel-btn[data-v-
|
|
816
|
+
.cancel-btn[data-v-b85d16dc] {
|
|
817
817
|
color: #969799;
|
|
818
818
|
margin-right: 5px;
|
|
819
819
|
}
|
|
820
|
-
.scroll-container[data-v-
|
|
820
|
+
.scroll-container[data-v-b85d16dc] {
|
|
821
821
|
height: calc(80vh - 150px);
|
|
822
822
|
overflow-y: auto;
|
|
823
823
|
}
|
|
824
|
-
.cell-content[data-v-
|
|
824
|
+
.cell-content[data-v-b85d16dc] {
|
|
825
825
|
display: flex;
|
|
826
826
|
align-items: center;
|
|
827
827
|
gap: 12px;
|
|
828
828
|
}
|
|
829
|
-
.circle-selector[data-v-
|
|
829
|
+
.circle-selector[data-v-b85d16dc] {
|
|
830
830
|
width: 20px;
|
|
831
831
|
height: 20px;
|
|
832
832
|
border-radius: 50%;
|
|
@@ -836,29 +836,36 @@
|
|
|
836
836
|
transition: all 0.2s;
|
|
837
837
|
flex-shrink: 0;
|
|
838
838
|
}
|
|
839
|
-
.circle-selector.selected[data-v-
|
|
839
|
+
.circle-selector.selected[data-v-b85d16dc] {
|
|
840
840
|
background-color: #1989fa;
|
|
841
841
|
border-color: #1989fa;
|
|
842
842
|
}
|
|
843
|
-
.circle-selector.selected .van-icon[data-v-
|
|
843
|
+
.circle-selector.selected .van-icon[data-v-b85d16dc] {
|
|
844
844
|
color: white;
|
|
845
845
|
font-size: 14px;
|
|
846
846
|
}
|
|
847
|
-
.van-cell__right-icon[data-v-
|
|
847
|
+
.van-cell__right-icon[data-v-b85d16dc] {
|
|
848
848
|
color: #969799;
|
|
849
849
|
font-size: 16px;
|
|
850
850
|
margin-left: 8px;
|
|
851
851
|
}
|
|
852
|
-
.name[data-v-
|
|
852
|
+
.name[data-v-b85d16dc] {
|
|
853
853
|
flex: 1;
|
|
854
854
|
overflow: hidden;
|
|
855
855
|
text-overflow: ellipsis;
|
|
856
856
|
white-space: nowrap;
|
|
857
857
|
}
|
|
858
|
-
.cancel-btn[data-v-
|
|
858
|
+
.cancel-btn[data-v-b85d16dc] {
|
|
859
859
|
color: #969799;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
860
|
+
}
|
|
861
|
+
.search-field[data-v-b85d16dc] {
|
|
862
|
+
background: #fff;
|
|
863
|
+
padding: 10px 16px;
|
|
864
|
+
border-bottom: 1px solid #ebedf0;
|
|
865
|
+
position: sticky;
|
|
866
|
+
top: 0;
|
|
867
|
+
z-index: 999;
|
|
868
|
+
margin-bottom: 10px;
|
|
869
|
+
flex-shrink: 0;
|
|
870
|
+
/* 防止压缩 */
|
|
864
871
|
}
|
package/build/widget.qw.es.js
CHANGED
|
@@ -2949,7 +2949,7 @@ var lib = {
|
|
|
2949
2949
|
parse,
|
|
2950
2950
|
stringify
|
|
2951
2951
|
};
|
|
2952
|
-
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2952
|
+
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_NEED_LOGIN_CODE;
|
|
2953
2953
|
const NEED_LOGIN_CODES = [
|
|
2954
2954
|
NEED_LOGIN
|
|
2955
2955
|
];
|
|
@@ -2959,11 +2959,10 @@ function setCacheValueByKey(key, val) {
|
|
|
2959
2959
|
function removeCacheByKey(key) {
|
|
2960
2960
|
localStorage.removeItem(key);
|
|
2961
2961
|
}
|
|
2962
|
-
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2963
|
-
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2962
|
+
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_KEY;
|
|
2963
|
+
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_PREFIX;
|
|
2964
2964
|
function getToken() {
|
|
2965
|
-
|
|
2966
|
-
return vm.tokenCallback();
|
|
2965
|
+
return TOKEN_PREFIX + { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_DEBUG_TOKEN;
|
|
2967
2966
|
}
|
|
2968
2967
|
function setToken(token2) {
|
|
2969
2968
|
setCacheValueByKey(TOKEN_KEY, token2);
|
|
@@ -2998,12 +2997,12 @@ const props2auth = (props) => {
|
|
|
2998
2997
|
isReadonly: computed(() => {
|
|
2999
2998
|
if (props.auth)
|
|
3000
2999
|
return props.auth == "readonly";
|
|
3000
|
+
if (props.readonly)
|
|
3001
|
+
return true;
|
|
3001
3002
|
if (props.required)
|
|
3002
3003
|
return false;
|
|
3003
3004
|
if (props.disabled)
|
|
3004
3005
|
return true;
|
|
3005
|
-
if (props.readonly)
|
|
3006
|
-
return true;
|
|
3007
3006
|
return false;
|
|
3008
3007
|
}),
|
|
3009
3008
|
rules: computed(() => {
|
|
@@ -3299,6 +3298,13 @@ const part_children = (data2) => {
|
|
|
3299
3298
|
data: data2
|
|
3300
3299
|
});
|
|
3301
3300
|
};
|
|
3301
|
+
const part_detail = (data2) => {
|
|
3302
|
+
return service$3({
|
|
3303
|
+
url: vm.urlCallback() + "/ac-api/part/detail",
|
|
3304
|
+
method: "POST",
|
|
3305
|
+
data: data2
|
|
3306
|
+
});
|
|
3307
|
+
};
|
|
3302
3308
|
var ApiUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3303
3309
|
__proto__: null,
|
|
3304
3310
|
process_can_apply,
|
|
@@ -3315,7 +3321,8 @@ var ApiUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
3315
3321
|
wx_user_list,
|
|
3316
3322
|
file_upload,
|
|
3317
3323
|
auth_get_user_info,
|
|
3318
|
-
part_children
|
|
3324
|
+
part_children,
|
|
3325
|
+
part_detail
|
|
3319
3326
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3320
3327
|
function noop() {
|
|
3321
3328
|
}
|
|
@@ -20562,7 +20569,7 @@ const _sfc_main$2 = {
|
|
|
20562
20569
|
}
|
|
20563
20570
|
};
|
|
20564
20571
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6744b874"]]);
|
|
20565
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
20572
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-b85d16dc] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-b85d16dc] {\r\n padding: 10px;\n}\n.search-buttons[data-v-b85d16dc] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-b85d16dc] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-b85d16dc] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-b85d16dc] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-b85d16dc] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-b85d16dc] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-b85d16dc] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-b85d16dc] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-b85d16dc] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-b85d16dc] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-b85d16dc] {\r\n width: 20px;\r\n height: 20px;\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: all 0.2s;\r\n flex-shrink: 0;\n}\n.circle-selector.selected[data-v-b85d16dc] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-b85d16dc] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-b85d16dc] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-b85d16dc] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-b85d16dc] {\r\n color: #969799;\n}\n.search-field[data-v-b85d16dc] {\r\n background: #fff;\r\n padding: 10px 16px;\r\n border-bottom: 1px solid #ebedf0;\r\n position: sticky;\r\n top: 0;\r\n z-index: 999;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n /* \u9632\u6B62\u538B\u7F29 */\n}\r\n")();
|
|
20566
20573
|
const _hoisted_1 = {
|
|
20567
20574
|
class: "cascader-selector"
|
|
20568
20575
|
};
|
|
@@ -20656,7 +20663,7 @@ const _sfc_main$1 = {
|
|
|
20656
20663
|
});
|
|
20657
20664
|
});
|
|
20658
20665
|
const onSearch = () => __async(this, null, function* () {
|
|
20659
|
-
yield
|
|
20666
|
+
yield props.queryNodes({
|
|
20660
20667
|
keyword: data2.keyword,
|
|
20661
20668
|
parentId: ""
|
|
20662
20669
|
}, (nodes) => {
|
|
@@ -20715,6 +20722,11 @@ const _sfc_main$1 = {
|
|
|
20715
20722
|
}, {
|
|
20716
20723
|
immediate: true
|
|
20717
20724
|
});
|
|
20725
|
+
watch(() => props.show, () => {
|
|
20726
|
+
if (!props.show)
|
|
20727
|
+
return;
|
|
20728
|
+
queryTotalNodes();
|
|
20729
|
+
});
|
|
20718
20730
|
return (_ctx, _cache) => {
|
|
20719
20731
|
const _component_van_button = resolveComponent("van-button");
|
|
20720
20732
|
const _component_van_search = resolveComponent("van-search");
|
|
@@ -20796,8 +20808,7 @@ const _sfc_main$1 = {
|
|
|
20796
20808
|
};
|
|
20797
20809
|
}
|
|
20798
20810
|
};
|
|
20799
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
20800
|
-
var CascaderPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user[data-v-50c3a19a]{\r\n padding:4px 8px;\n}\r\n")();
|
|
20811
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b85d16dc"]]);
|
|
20801
20812
|
const _sfc_main = {
|
|
20802
20813
|
__name: "CascaderPicker",
|
|
20803
20814
|
props: {
|
|
@@ -20819,7 +20830,7 @@ const _sfc_main = {
|
|
|
20819
20830
|
},
|
|
20820
20831
|
readonly: {
|
|
20821
20832
|
type: Boolean,
|
|
20822
|
-
default:
|
|
20833
|
+
default: true
|
|
20823
20834
|
},
|
|
20824
20835
|
rules: {
|
|
20825
20836
|
type: Array,
|
|
@@ -20883,6 +20894,7 @@ const _sfc_main = {
|
|
|
20883
20894
|
return openBlock(), createElementBlock(Fragment, null, [!unref(isGone) ? (openBlock(), createBlock(_component_van_field, {
|
|
20884
20895
|
key: 0,
|
|
20885
20896
|
label: props.label,
|
|
20897
|
+
readonly: "",
|
|
20886
20898
|
required: unref(isRequired),
|
|
20887
20899
|
rules: props.rules,
|
|
20888
20900
|
disabled: unref(isDisabled),
|
|
@@ -20890,20 +20902,23 @@ const _sfc_main = {
|
|
|
20890
20902
|
"is-link": unref(isReadonly) ? false : true,
|
|
20891
20903
|
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !unref(isReadonly)),
|
|
20892
20904
|
"label-class": "label"
|
|
20893
|
-
}, {
|
|
20894
|
-
|
|
20905
|
+
}, createSlots({
|
|
20906
|
+
_: 2
|
|
20907
|
+
}, [unref(modelValue) ? {
|
|
20908
|
+
name: "input",
|
|
20909
|
+
fn: withCtx(() => [unref(modelValue) ? (openBlock(), createBlock(_component_van_tag, {
|
|
20895
20910
|
key: 0,
|
|
20896
20911
|
class: "selected-node",
|
|
20897
20912
|
closeable: !unref(isDisabled),
|
|
20898
|
-
|
|
20913
|
+
color: "#fff",
|
|
20914
|
+
"text-color": "#333",
|
|
20899
20915
|
size: "medium",
|
|
20900
20916
|
onClose: withModifiers(onDelete, ["stop"])
|
|
20901
20917
|
}, {
|
|
20902
20918
|
default: withCtx(() => [createTextVNode(toDisplayString(data2.selectedNode.formatLabel), 1)]),
|
|
20903
20919
|
_: 1
|
|
20904
|
-
}, 8, ["closeable", "onClose"])) : createCommentVNode("", true)])
|
|
20905
|
-
|
|
20906
|
-
}, 8, ["label", "required", "rules", "disabled", "placeholder", "is-link"])) : createCommentVNode("", true), createVNode(CascaderPop, {
|
|
20920
|
+
}, 8, ["closeable", "onClose"])) : createCommentVNode("", true)])
|
|
20921
|
+
} : void 0]), 1032, ["label", "required", "rules", "disabled", "placeholder", "is-link"])) : createCommentVNode("", true), createVNode(CascaderPop, {
|
|
20907
20922
|
show: data2.isShowPop,
|
|
20908
20923
|
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => data2.isShowPop = $event),
|
|
20909
20924
|
modelValue: unref(modelValue),
|
|
@@ -20916,7 +20931,6 @@ const _sfc_main = {
|
|
|
20916
20931
|
};
|
|
20917
20932
|
}
|
|
20918
20933
|
};
|
|
20919
|
-
var CascaderPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-50c3a19a"]]);
|
|
20920
20934
|
const secret_notify = () => {
|
|
20921
20935
|
showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
|
|
20922
20936
|
};
|
|
@@ -21035,7 +21049,7 @@ const components = [
|
|
|
21035
21049
|
},
|
|
21036
21050
|
{
|
|
21037
21051
|
name: "WidgetQwCascaderPicker",
|
|
21038
|
-
widget:
|
|
21052
|
+
widget: _sfc_main
|
|
21039
21053
|
}
|
|
21040
21054
|
];
|
|
21041
21055
|
const WidgetQw = {
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -2952,7 +2952,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2952
2952
|
parse,
|
|
2953
2953
|
stringify
|
|
2954
2954
|
};
|
|
2955
|
-
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2955
|
+
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_NEED_LOGIN_CODE;
|
|
2956
2956
|
const NEED_LOGIN_CODES = [
|
|
2957
2957
|
NEED_LOGIN
|
|
2958
2958
|
];
|
|
@@ -2962,11 +2962,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2962
2962
|
function removeCacheByKey(key) {
|
|
2963
2963
|
localStorage.removeItem(key);
|
|
2964
2964
|
}
|
|
2965
|
-
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2966
|
-
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2965
|
+
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_KEY;
|
|
2966
|
+
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_PREFIX;
|
|
2967
2967
|
function getToken() {
|
|
2968
|
-
|
|
2969
|
-
return vm.tokenCallback();
|
|
2968
|
+
return TOKEN_PREFIX + { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": true, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_DEBUG_TOKEN;
|
|
2970
2969
|
}
|
|
2971
2970
|
function setToken(token2) {
|
|
2972
2971
|
setCacheValueByKey(TOKEN_KEY, token2);
|
|
@@ -3001,12 +3000,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3001
3000
|
isReadonly: vue.computed(() => {
|
|
3002
3001
|
if (props.auth)
|
|
3003
3002
|
return props.auth == "readonly";
|
|
3003
|
+
if (props.readonly)
|
|
3004
|
+
return true;
|
|
3004
3005
|
if (props.required)
|
|
3005
3006
|
return false;
|
|
3006
3007
|
if (props.disabled)
|
|
3007
3008
|
return true;
|
|
3008
|
-
if (props.readonly)
|
|
3009
|
-
return true;
|
|
3010
3009
|
return false;
|
|
3011
3010
|
}),
|
|
3012
3011
|
rules: vue.computed(() => {
|
|
@@ -3302,6 +3301,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3302
3301
|
data: data2
|
|
3303
3302
|
});
|
|
3304
3303
|
};
|
|
3304
|
+
const part_detail = (data2) => {
|
|
3305
|
+
return service$3({
|
|
3306
|
+
url: vm.urlCallback() + "/ac-api/part/detail",
|
|
3307
|
+
method: "POST",
|
|
3308
|
+
data: data2
|
|
3309
|
+
});
|
|
3310
|
+
};
|
|
3305
3311
|
var ApiUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3306
3312
|
__proto__: null,
|
|
3307
3313
|
process_can_apply,
|
|
@@ -3318,7 +3324,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3318
3324
|
wx_user_list,
|
|
3319
3325
|
file_upload,
|
|
3320
3326
|
auth_get_user_info,
|
|
3321
|
-
part_children
|
|
3327
|
+
part_children,
|
|
3328
|
+
part_detail
|
|
3322
3329
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3323
3330
|
function noop() {
|
|
3324
3331
|
}
|
|
@@ -20565,7 +20572,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20565
20572
|
}
|
|
20566
20573
|
};
|
|
20567
20574
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6744b874"]]);
|
|
20568
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
20575
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-b85d16dc] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-b85d16dc] {\r\n padding: 10px;\n}\n.search-buttons[data-v-b85d16dc] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-b85d16dc] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-b85d16dc] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-b85d16dc] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-b85d16dc] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-b85d16dc] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-b85d16dc] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-b85d16dc] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-b85d16dc] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-b85d16dc] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-b85d16dc] {\r\n width: 20px;\r\n height: 20px;\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: all 0.2s;\r\n flex-shrink: 0;\n}\n.circle-selector.selected[data-v-b85d16dc] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-b85d16dc] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-b85d16dc] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-b85d16dc] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-b85d16dc] {\r\n color: #969799;\n}\n.search-field[data-v-b85d16dc] {\r\n background: #fff;\r\n padding: 10px 16px;\r\n border-bottom: 1px solid #ebedf0;\r\n position: sticky;\r\n top: 0;\r\n z-index: 999;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n /* \u9632\u6B62\u538B\u7F29 */\n}\r\n")();
|
|
20569
20576
|
const _hoisted_1 = {
|
|
20570
20577
|
class: "cascader-selector"
|
|
20571
20578
|
};
|
|
@@ -20659,7 +20666,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20659
20666
|
});
|
|
20660
20667
|
});
|
|
20661
20668
|
const onSearch = () => __async(this, null, function* () {
|
|
20662
|
-
yield
|
|
20669
|
+
yield props.queryNodes({
|
|
20663
20670
|
keyword: data2.keyword,
|
|
20664
20671
|
parentId: ""
|
|
20665
20672
|
}, (nodes) => {
|
|
@@ -20718,6 +20725,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20718
20725
|
}, {
|
|
20719
20726
|
immediate: true
|
|
20720
20727
|
});
|
|
20728
|
+
vue.watch(() => props.show, () => {
|
|
20729
|
+
if (!props.show)
|
|
20730
|
+
return;
|
|
20731
|
+
queryTotalNodes();
|
|
20732
|
+
});
|
|
20721
20733
|
return (_ctx, _cache) => {
|
|
20722
20734
|
const _component_van_button = vue.resolveComponent("van-button");
|
|
20723
20735
|
const _component_van_search = vue.resolveComponent("van-search");
|
|
@@ -20799,8 +20811,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20799
20811
|
};
|
|
20800
20812
|
}
|
|
20801
20813
|
};
|
|
20802
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
20803
|
-
var CascaderPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user[data-v-50c3a19a]{\r\n padding:4px 8px;\n}\r\n")();
|
|
20814
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b85d16dc"]]);
|
|
20804
20815
|
const _sfc_main = {
|
|
20805
20816
|
__name: "CascaderPicker",
|
|
20806
20817
|
props: {
|
|
@@ -20822,7 +20833,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20822
20833
|
},
|
|
20823
20834
|
readonly: {
|
|
20824
20835
|
type: Boolean,
|
|
20825
|
-
default:
|
|
20836
|
+
default: true
|
|
20826
20837
|
},
|
|
20827
20838
|
rules: {
|
|
20828
20839
|
type: Array,
|
|
@@ -20886,6 +20897,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20886
20897
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [!vue.unref(isGone) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
20887
20898
|
key: 0,
|
|
20888
20899
|
label: props.label,
|
|
20900
|
+
readonly: "",
|
|
20889
20901
|
required: vue.unref(isRequired),
|
|
20890
20902
|
rules: props.rules,
|
|
20891
20903
|
disabled: vue.unref(isDisabled),
|
|
@@ -20893,20 +20905,23 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20893
20905
|
"is-link": vue.unref(isReadonly) ? false : true,
|
|
20894
20906
|
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !vue.unref(isReadonly)),
|
|
20895
20907
|
"label-class": "label"
|
|
20896
|
-
}, {
|
|
20897
|
-
|
|
20908
|
+
}, vue.createSlots({
|
|
20909
|
+
_: 2
|
|
20910
|
+
}, [vue.unref(modelValue) ? {
|
|
20911
|
+
name: "input",
|
|
20912
|
+
fn: vue.withCtx(() => [vue.unref(modelValue) ? (vue.openBlock(), vue.createBlock(_component_van_tag, {
|
|
20898
20913
|
key: 0,
|
|
20899
20914
|
class: "selected-node",
|
|
20900
20915
|
closeable: !vue.unref(isDisabled),
|
|
20901
|
-
|
|
20916
|
+
color: "#fff",
|
|
20917
|
+
"text-color": "#333",
|
|
20902
20918
|
size: "medium",
|
|
20903
20919
|
onClose: vue.withModifiers(onDelete, ["stop"])
|
|
20904
20920
|
}, {
|
|
20905
20921
|
default: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString(data2.selectedNode.formatLabel), 1)]),
|
|
20906
20922
|
_: 1
|
|
20907
|
-
}, 8, ["closeable", "onClose"])) : vue.createCommentVNode("", true)])
|
|
20908
|
-
|
|
20909
|
-
}, 8, ["label", "required", "rules", "disabled", "placeholder", "is-link"])) : vue.createCommentVNode("", true), vue.createVNode(CascaderPop, {
|
|
20923
|
+
}, 8, ["closeable", "onClose"])) : vue.createCommentVNode("", true)])
|
|
20924
|
+
} : void 0]), 1032, ["label", "required", "rules", "disabled", "placeholder", "is-link"])) : vue.createCommentVNode("", true), vue.createVNode(CascaderPop, {
|
|
20910
20925
|
show: data2.isShowPop,
|
|
20911
20926
|
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => data2.isShowPop = $event),
|
|
20912
20927
|
modelValue: vue.unref(modelValue),
|
|
@@ -20919,7 +20934,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20919
20934
|
};
|
|
20920
20935
|
}
|
|
20921
20936
|
};
|
|
20922
|
-
var CascaderPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-50c3a19a"]]);
|
|
20923
20937
|
const secret_notify = () => {
|
|
20924
20938
|
showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
|
|
20925
20939
|
};
|
|
@@ -21038,7 +21052,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21038
21052
|
},
|
|
21039
21053
|
{
|
|
21040
21054
|
name: "WidgetQwCascaderPicker",
|
|
21041
|
-
widget:
|
|
21055
|
+
widget: _sfc_main
|
|
21042
21056
|
}
|
|
21043
21057
|
];
|
|
21044
21058
|
const WidgetQw = {
|
package/package.json
CHANGED
package/src/api/index.js
CHANGED
|
@@ -131,4 +131,12 @@ export const part_children = (data) => {
|
|
|
131
131
|
method: "POST",
|
|
132
132
|
data: data,
|
|
133
133
|
})
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export const part_detail = (data) => {
|
|
137
|
+
return request_json({
|
|
138
|
+
url: vm.urlCallback() + "/ac-api/part/detail",
|
|
139
|
+
method: "POST",
|
|
140
|
+
data: data,
|
|
141
|
+
})
|
|
134
142
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<van-field v-if="!isGone" :label="props.label" :required="isRequired" :rules="props.rules" :disabled="isDisabled"
|
|
2
|
+
<van-field v-if="!isGone" :label="props.label" readonly :required="isRequired" :rules="props.rules" :disabled="isDisabled"
|
|
3
3
|
:placeholder="props.placeholder" :is-link="isReadonly ? false : true" @click="data.isShowPop = !isReadonly"
|
|
4
4
|
label-class="label">
|
|
5
|
-
<template #input>
|
|
6
|
-
<van-tag class="selected-node" v-if="modelValue" :closeable="!isDisabled"
|
|
5
|
+
<template #input v-if="modelValue">
|
|
6
|
+
<van-tag class="selected-node" v-if="modelValue" :closeable="!isDisabled" color="#fff" text-color="#333" size="medium"
|
|
7
7
|
@close.stop="onDelete">
|
|
8
8
|
{{ data.selectedNode.formatLabel }}
|
|
9
9
|
</van-tag>
|
|
@@ -41,7 +41,7 @@ const props = defineProps({
|
|
|
41
41
|
},
|
|
42
42
|
readonly: {
|
|
43
43
|
type: Boolean,
|
|
44
|
-
default:
|
|
44
|
+
default: true,
|
|
45
45
|
},
|
|
46
46
|
rules: {
|
|
47
47
|
type: Array,
|
|
@@ -101,7 +101,4 @@ watch(() => modelValue.value, async (n, o) => {
|
|
|
101
101
|
</script>
|
|
102
102
|
|
|
103
103
|
<style scoped>
|
|
104
|
-
.user{
|
|
105
|
-
padding:4px 8px;
|
|
106
|
-
}
|
|
107
104
|
</style>
|
|
@@ -122,7 +122,7 @@ const queryTotalNodes = async () => {
|
|
|
122
122
|
|
|
123
123
|
// 关键字查询
|
|
124
124
|
const onSearch = async () => {
|
|
125
|
-
await
|
|
125
|
+
await props.queryNodes({keyword:data.keyword,parentId:''}, (nodes) => {
|
|
126
126
|
data.searchNodes = nodes
|
|
127
127
|
})
|
|
128
128
|
}
|
|
@@ -193,6 +193,13 @@ watch(() => props.modelValue, () => {
|
|
|
193
193
|
// 初始化当前节点
|
|
194
194
|
data.currentNode = util.findParent(props.modelValue, data.totalNodes)
|
|
195
195
|
}, { immediate: true })
|
|
196
|
+
|
|
197
|
+
watch(()=>props.show,()=>{
|
|
198
|
+
if(!props.show)
|
|
199
|
+
return
|
|
200
|
+
|
|
201
|
+
queryTotalNodes()
|
|
202
|
+
})
|
|
196
203
|
</script>
|
|
197
204
|
|
|
198
205
|
<style scoped>
|
|
@@ -310,4 +317,16 @@ watch(() => props.modelValue, () => {
|
|
|
310
317
|
.cancel-btn {
|
|
311
318
|
color: #969799;
|
|
312
319
|
}
|
|
313
|
-
|
|
320
|
+
|
|
321
|
+
.search-field {
|
|
322
|
+
background: #fff;
|
|
323
|
+
padding: 10px 16px;
|
|
324
|
+
border-bottom: 1px solid #ebedf0;
|
|
325
|
+
position: sticky;
|
|
326
|
+
top: 0;
|
|
327
|
+
z-index: 999;
|
|
328
|
+
margin-bottom: 10px;
|
|
329
|
+
flex-shrink: 0;
|
|
330
|
+
/* 防止压缩 */
|
|
331
|
+
}
|
|
332
|
+
</style>
|
package/src/router/index.ts
CHANGED
|
@@ -160,4 +160,16 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
160
160
|
name: "cascaderpicker",
|
|
161
161
|
component: () => import("../views/cascaderpicker/index.vue"),
|
|
162
162
|
}
|
|
163
|
-
]
|
|
163
|
+
]
|
|
164
|
+
|
|
165
|
+
const router = createRouter({
|
|
166
|
+
history: createWebHashHistory(process.env.BASE_URL),
|
|
167
|
+
routes,
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
router.beforeEach((to, from, next) => {
|
|
171
|
+
console.log("+++路由回调++++++++++++++++++++++");
|
|
172
|
+
next();
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
export default router;
|
package/src/util/auth_util.js
CHANGED
|
@@ -54,15 +54,15 @@ export const props2auth = (props) => {
|
|
|
54
54
|
isReadonly: computed(()=>{
|
|
55
55
|
if (props.auth)
|
|
56
56
|
return props.auth == 'readonly'
|
|
57
|
-
|
|
57
|
+
|
|
58
|
+
if(props.readonly)
|
|
59
|
+
return true
|
|
60
|
+
|
|
58
61
|
if(props.required)
|
|
59
62
|
return false
|
|
60
63
|
|
|
61
64
|
if(props.disabled)
|
|
62
65
|
return true
|
|
63
|
-
|
|
64
|
-
if(props.readonly)
|
|
65
|
-
return true
|
|
66
66
|
|
|
67
67
|
return false
|
|
68
68
|
}),
|
|
Binary file
|
package/src/views/home/index.vue
CHANGED
|
Binary file
|
package/vite.config.ts
CHANGED
|
@@ -40,8 +40,8 @@ export default {
|
|
|
40
40
|
VUE_APP_NEED_LOGIN_CODE: 401,
|
|
41
41
|
//注意:发布时 VUE_APP_IS_DEBUG必须配置为false
|
|
42
42
|
// 本地开发时 VUE_APP_IS_DEBUG必须配置为true
|
|
43
|
-
VUE_APP_IS_DEBUG: false,
|
|
44
|
-
|
|
43
|
+
// VUE_APP_IS_DEBUG: false,
|
|
44
|
+
VUE_APP_IS_DEBUG: true,
|
|
45
45
|
VUE_APP_DEBUG_TOKEN: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns'
|
|
46
46
|
},
|
|
47
47
|
},
|