feat: hover-image-preview失效问题调整
This commit is contained in:
@ -7,6 +7,7 @@ import router from './router';
|
||||
import store from './stores';
|
||||
import * as directives from '@/directives';
|
||||
|
||||
import VueLazyLoad from "vue-lazyload";
|
||||
import NoData from '@/components/no-data/index.vue';
|
||||
import SvgIcon from '@/components/svg-icon/index.vue';
|
||||
|
||||
@ -18,6 +19,9 @@ import 'normalize.css';
|
||||
import 'uno.css';
|
||||
import 'virtual:svg-icons-register';
|
||||
|
||||
import errorImage from '@/assets/img/error-img.png';
|
||||
import loadingImage from '@/assets/img/error-img.png';
|
||||
|
||||
// import '@/styles/vars.css'; // 优先加载
|
||||
|
||||
const app = createApp(App);
|
||||
@ -27,6 +31,10 @@ app.component('SvgIcon', SvgIcon);
|
||||
|
||||
app.use(store);
|
||||
app.use(router);
|
||||
app.use(VueLazyLoad, {
|
||||
error: errorImage,
|
||||
loading: loadingImage,
|
||||
});
|
||||
|
||||
Object.values(directives).forEach((directive) => {
|
||||
app.use(directive);
|
||||
|
||||
Reference in New Issue
Block a user