سلام
این ارور رو دارم ...! اولا چی میگه و دوما مشکل از کجا است ؟
ارور :
Failed to compile.
./src/App.vue
Module Error (from ./node_modules/eslint-loader/index.js):
C:\Users\kefayati\Documents\علیرضا کفایتی\برنامه نویسی و طراحی وب\پروژه ها\mfaegh_ir\src\App.vue
8:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs
13:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs
14:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs
15:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs
28:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs
✖ 5 problems (5 errors, 0 warnings)
فایل App.vue :
<template>
<div id="b-img">
</div>
<footer class="footer-07">
<div class="container text-center">
<div class="row justify-content-center text-center">
<div class="col-md-12 text-center">
<h2 class="footer-heading text-center">
<a href="/" class="logof text-center">پایگاه اطلاع رسانی مسجد فائق</a>
</h2>
<br/>
<p class="menuf text-center"><a href="/">خانه</a><a href="/articles/">نوشته ها</a><a href="https://roocket.ir/videos">ویدیو ها</a><a href="/login/">ورود</a><a href="/register/">ثبت نام</a><a href="/contact-us/">ارتباط</a>
</p>
<p class="ftco-footer-social p-0 text-center">
<a href="https://ble.ir/masjed_faegh" target="_blank"><img src="https://bayanbox.ir/view/6613301117115541816/ir.nasim-128x128.png" style="width: 40px;" class="img-adress" alt="کانال مسجد فائق در بله"></a>
<a href="https://eitaa.com/masjed_faegh" target="_blank"><img src="https://bayanbox.ir/view/6736469880896554318/ir.eitaa.messenger-512x512.png" style="width: 40px;" class="img-adress" alt="کانال مسجد فائق در ایتا"></a>
<a href="https://splus.ir/masjed_faegh" target="_blank"><img src="/img/link/Soroush-Logo-LimooGraphic.png" style="width: 40px;" class="img-adress" alt="کانال مسجد فائق در سروش"></a>
<a href="https://aparat.com/masjed_faegh" target="_blank"><img src="https://bayanbox.ir/view/7918902236960145535/icon-color-black-1024px.png" style="width: 40px;" class="img-adress" alt="کانال مسجد فائق در آپارات"></a>
<a href="https://instagram.com/masjed_faegh?igshid=1kk7neu1axohm" target="_blank"><img src="https://mfaegh.ir/img/link/3.png" style="width: 40px;" class="img-adress" alt="کانال مسجد فائق در اینستاگرام"></a>
</p>
</div>
</div>
<hr/>
<div class="row mt-2 text-center">
<div class="col-md-12 text-center">
<p class="copyright">
تمامی حقوق محفوظ به مسجد فائق است ©
</p>
</div>
</div>
</div>
</footer>
</template>
<script>
export default {
setup() {
return {};
},
};
</script>
<style>
.mr-1{
margin-right: 1rem;
}
</style>توجه داشته باشید که در بدنه تگ template در vue باید تنها از یک تگ استفاده شه.
یعنی div با کلاس b-img و همچنینن فوتر رو داخل یک تگ دیگه مثل div یا section قرار بدید.
@hamedniroomand
توجه کنید که این قانون در Vue 3 برداشته شد، شما می توانید چندین عنصر رو در عنصر ریشه قرار دهید.
https://v3.vuejs.org/guide/migration/fragments.html#overview
شاید پاسخ شما همینجا باشد