mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-24 02:02:55 +08:00
fix:修改公告内容
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
<div class="itemtime">{{ item.pubtime }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>s
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs, onMounted } from "vue";
|
||||
import { reactive, toRefs, onMounted, watch } from "vue";
|
||||
import { getTask } from "../../api/indexTaskadd";
|
||||
import { noticeList } from "../../api/indexNotice";
|
||||
import emitter from "../../utils/bus";
|
||||
@@ -26,6 +26,10 @@ export default {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
show: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
|
||||
setup(props) {
|
||||
@@ -89,6 +93,19 @@ export default {
|
||||
getTaskInfo();
|
||||
getNotice();
|
||||
});
|
||||
watch(
|
||||
() => props.show,
|
||||
() => {
|
||||
console.log("props.show", props.show);
|
||||
if (props.show == 12) {
|
||||
getTaskInfo();
|
||||
getNotice();
|
||||
}
|
||||
},
|
||||
{
|
||||
deep: true,
|
||||
}
|
||||
);
|
||||
return {
|
||||
...toRefs(state),
|
||||
getTaskInfo,
|
||||
|
||||
Reference in New Issue
Block a user