整理目录结构,加上publicPath
This commit is contained in:
parent
b94b158bab
commit
3f0febe643
6 changed files with 4 additions and 10 deletions
1
.env
1
.env
|
@ -1 +0,0 @@
|
|||
VUE_APP_URL_ROOT='/'
|
0
public/categories/.gitkeep
Normal file
0
public/categories/.gitkeep
Normal file
Binary file not shown.
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"categories": [
|
||||
{
|
||||
"name": "computer",
|
||||
"files": ["modern-full-stack.pdf", "gdb.pdf"]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -75,7 +75,7 @@ export default defineComponent({
|
|||
},
|
||||
async created() {
|
||||
const { data } = await axios.get(`${this.url_root}db.json`);
|
||||
this.categories = data.categories;
|
||||
this.categories = data;
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
3
vue.config.js
Normal file
3
vue.config.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = {
|
||||
publicPath: process.env.VUE_APP_URL_ROOT,
|
||||
};
|
Loading…
Reference in a new issue