there are now three files data.js import {calNum} from . Cal export const a = {name:calNum} Cal.vue < script > const calNum=0 export default { calNum } < script > test.vue < template > <div style="margin-top: 100px"...
problem description want to package all js files into one js file! the environmental background of the problems and what methods you have tried A js file can be packaged with require, but the page cannot be displayed after packaging related code...
use the < router-view > < router-view > path to display correctly but the content cannot be displayed and the error is not reported. I don t know what the problem is. the route is changed to this: menus.forEach(item => { var childArr = ...
problem description wrote a demo of vue-router and wanted to implement: enter the page and first redirect to index and then there is a < router-link to= " login " > to login < router-link > Click to jump to the login page; but I wro...
Click on the home page of my performance, jump to the yeji directory of the myYeji, now that the route has been redirected, why not render the page? ...
home ...
< H1 > question 1: when a component inactive, the data in it suddenly becomes null, but after active, the data is restored < H1 >. Each object in list contains an object called content when this component active , this object is with data. ...
Click the button to jump: the current page path is order toOrderDetail(item){ this.SAVE_ORDER(item); this.$router.push( order detail ); console.log(2222) } routing code: { ...
this is a reported error: menu.js : module.export = [{ name: cc-Box Module , id: crossChexBox , sub: [{ name: device , componentName: DeviceStatus }, { name: user , componentName: U...
fallback is a common function, so I encapsulated it as a global function assetes global.js import Vue from vue import Router from "vue-router"; Vue.use(Router) export default({ back:function(){ this.$router.go(-1); ...
the following figure shows my router configuration with only one layer of flattening. Except for the created hook of app.vue, the created life cycle of all other pages of the project is executed twice each (the project uses the tab component of mint-ui,...
if the question passes import store from @ store store.js ...
{ path: , name: , component:() =>import( * webpackChunkName: "home" * ". views Home.vue"), children: [ { path: assets , name: , component: () =>imp...
related codes Please paste the code text below (do not replace the code with pictures) < ul class= "home_tab " > <li v-for="item in tabs"> **<router-link :to="item.ur">** <div><img :src="...
without using the .vue single file, I want to click the button in the profile component to make the modal box component display, mainly to modify the showmode value of the root instance. started to want to use prop, and found that I didn t find a sui...
problem description VueIView, (Modal) A A B B A mounted !!! various dependency information in the project the following is the package.json configuration class capacity { "name": "test4", "version": "1.0...
how does the vue browser refresh jump to the specified page ...
problem description RT, secondary setting rendering will turn the children into that component. No matter what level 3 is set, it has always been a rendering HelloWorld component. Is there something wrong with my configuration? related codes templ...
problem description using vue-router s history mode, there is no problem with the spa application with a single entry, but there is a problem with a page with multiple entries configured. the project template is here: https: github.com lwpersonal...
In the Vue project, there are four pages, namely index entry file, AMagneBMagi C, in which all of them use history.go (- 1) to return the previous page, and their jump relationship is . index "A " B "C, in which there is a jump button on the C page ...
Today, I found that JD.com s mobile phone can hide the toolbar at the bottom of the browser. I want to know how to do it. < meta name= "apple-mobile-web-app-capable " content= "yes " > this code has been added to the headers, but it has no effe...
vue packaging and backend code are packaged together. Excel static files cannot be downloaded in Linux environment. ...
class IssueRecordUpload extends React.Component { constructor(props) { super(props) this.state = { filters: {}, } } static propTypes = { filters: PropTypes.object, dispatch: PropTypes...
pictures are always loaded from the root directory of the server I don t know where was omitted when packing. ...
1: <script> $(function () { var $butObj = $("-sharpbutObj"); $butObj.click(function () { var $uname = $("-sharpuserName"); var inputName = $uname[0]; alert(inputName.value);...