广丰卷烟厂数采质量分析系统
zhuguifei
2026-03-02 80ff784bf60637cd348ae665fc907f7b1e527dd8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { ref } from 'vue';
import { useLoading } from '@sa/hooks';
 
/** Content Loading */
export default function useContentLoading() {
  const description = ref<string>('loading...');
  const loading = useLoading();
 
  function startLoading(desc: string = 'loading...') {
    description.value = desc;
    loading.startLoading();
  }
 
  function endLoading() {
    description.value = 'loading...';
    loading.endLoading();
  }
 
  return {
    loading: loading.loading,
    description,
    startLoading,
    endLoading
  };
}