|
|
@@ -29,7 +29,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, Ref, ref, watchEffect } from 'vue';
|
|
|
+import { defineComponent, onUnmounted, Ref, ref, watchEffect } from 'vue';
|
|
|
|
|
|
import { initData } from '@/setup/methods/index';
|
|
|
import filterCustomTable from '@/views/information/custom/compoments/filterTable/index.vue';
|
|
|
@@ -83,10 +83,13 @@ export default defineComponent({
|
|
|
const { modifyAction } = handleModify(contextMenuList);
|
|
|
const { disableAction } = handleDisable(contextMenuList);
|
|
|
|
|
|
- watchEffect(() => {
|
|
|
+ const stop = watchEffect(() => {
|
|
|
hasPermission('custom_info_btn_modify') && modifyAction();
|
|
|
hasPermission('custom_info_btn_disable') && disableAction();
|
|
|
});
|
|
|
+ onUnmounted(() => {
|
|
|
+ stop();
|
|
|
+ });
|
|
|
initData(() => {
|
|
|
actionQuery(3);
|
|
|
getColumns();
|