Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mfe-mcart
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Garima Jain
mfe-mcart
Commits
3f06df87
Commit
3f06df87
authored
Sep 21, 2021
by
Garima Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added url
parent
101b7841
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
package.json
package.json
+1
-1
ListCartItems.vue
src/components/ListCartItems.vue
+13
-12
No files found.
package.json
View file @
3f06df87
{
{
"name"
:
"
mcart
"
,
"name"
:
"
mcart
"
,
"version"
:
"0.1.
29
"
,
"version"
:
"0.1.
30
"
,
"private"
:
false
,
"private"
:
false
,
"main"
:
"./dist/mComponents.common.js"
,
"main"
:
"./dist/mComponents.common.js"
,
"files"
:
[
"files"
:
[
...
...
src/components/ListCartItems.vue
View file @
3f06df87
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
axios
from
'axios'
;
//
import axios from 'axios';
export
default
{
export
default
{
name
:
"ListCartItems"
,
name
:
"ListCartItems"
,
...
@@ -83,17 +83,18 @@ export default {
...
@@ -83,17 +83,18 @@ export default {
}
}
},
},
created
(){
created
(){
console
.
log
(
"this.url "
,
this
.
url
);
// console.log("this.url ",this.url);
axios
.
get
(
this
.
url
)
// axios.get(this.url)
.
then
(
response
=>
{
// .then(response => {
this
.
list
=
response
.
data
;
// this.list = response.data;
this
.
loading
=
false
;
// this.loading = false;
})
// })
.
catch
(
error
=>
{
// .catch(error => {
console
.
log
(
error
);
// console.log(error);
this
.
error
=
"Something went wrong. Please try again later."
;
// this.error = "Something went wrong. Please try again later.";
this
.
loading
=
false
;
// this.loading = false;
})
// })
this
.
list
=
this
.
url
},
},
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment