diff --git a/src/components/XyTable/index.vue b/src/components/XyTable/index.vue
index cc19efd..2992eb2 100644
--- a/src/components/XyTable/index.vue
+++ b/src/components/XyTable/index.vue
@@ -744,7 +744,7 @@ export default {
{ (() => {
let dom = [];
_this.auths.forEach((item, index) => {
- if (this.btnToMore && _this.moreAuths.find(j => j === item)) return
+ if ((_this.btnToMore || _this.auths.length > 5) && _this.moreAuths.find(j => j === item)) return
if (_this.$scopedSlots[item]) {
flag = index;
dom.push(_this.$scopedSlots[item](scope, item, index));
@@ -756,7 +756,9 @@ export default {
}
})
- this.btnToMore? dom.push(btns.get('more')) : ''
+ if (_this.auths.length > 5 || _this.btnToMore) {
+ dom.push(btns.get('more'))
+ }
return dom;
})() }
diff --git a/src/utils/auth.js b/src/utils/auth.js
index d1a9d7c..43d10c2 100644
--- a/src/utils/auth.js
+++ b/src/utils/auth.js
@@ -1,6 +1,6 @@
import Cookies from 'js-cookie'
-const TokenKey = 'starter_token'
+const TokenKey = 'dongtuo_token'
export function getToken() {
return Cookies.get(TokenKey)
diff --git a/src/views/component/table.vue b/src/views/component/table.vue
index 22f24b5..de508b4 100644
--- a/src/views/component/table.vue
+++ b/src/views/component/table.vue
@@ -283,6 +283,7 @@
:req-opt="select"
:destroy-req-opt="select"
:table-item="table"
+ :more-auths="['delete','edit','follow']"
@detail="
(row) => {
$router.push({
@@ -316,18 +317,18 @@
size="small"
type="primary"
@click="$refs['loss'].setId(row.id), $refs['loss'].show()"
- >流失确认流失
成交
- 跟进