Add brands

This commit is contained in:
Swift
2024-02-09 20:52:09 +03:30
parent f724a4259f
commit 0bb459ea25
5 changed files with 146 additions and 90 deletions
+4 -4
View File
@@ -20,7 +20,7 @@
<el-table-column width="80">
<template slot-scope="scope">
<img width="60" :src="config.apiAsanMarket + scope.row.logo">
<img width="60" :src="'/uploads/images/brands/'+scope.row.logo">
</template>
</el-table-column>
@@ -30,13 +30,13 @@
<el-table-column label="توضیحات" width="">
<template slot-scope="scope">
<span class="singleLineTxt" :title="scope.row.national"> {{ scope.row.description }} </span>
<span class="singleLineTxt" :title="scope.row.description"> {{ scope.row.description }} </span>
</template>
</el-table-column>
<el-table-column label="لینک" width="">
<template slot-scope="scope">
<span class="singleLineTxt" :title="scope.row.national"> {{ scope.row.link }} </span>
<span class="singleLineTxt" :title="scope.row.link"> {{ scope.row.link }} </span>
</template>
</el-table-column>
@@ -91,7 +91,7 @@
},
beforeMount(){
this.$axios.get('/api/public//brand').then(res=>{
this.$axios.get('/api/public/brand').then(res=>{
this.brands = res.data
console.log(res.data)